Skip to content

Component

Creeper edited this page Jun 30, 2016 · 1 revision

A typical component has structure below:

mycomponent/ # name should be component name
    |---- component.json/.yml/.yaml  # config and data
    |---- x.css
    |---- one.html  # component state one
    |---- two.html  # component state two
    |____ _xx.html  # html starts with _ will be ignored
  1. Dir can be scanned to generate component.yml. And you can custom some data like state name.
  2. Html file whose name starts with _ will be ignored when scan.
  3. Support other kind of component structure, but this one would be most suitable for prototyping.
Clone this wiki locally