mozilla-b2g/gaia — pull request #13741 by samjoch (2013-11-15 11:01:00+00:00)
Title: BuildingBlocks as pseudo "Web Components"

**Note**
* BB `CSS` are not changed at all.
* During build time `bb-` tags are replaced with their template.
* For testing purpose i added `bb-header` and `bb-subheader`
* **This is not working on desktop yet!**

**Structure**
* All web components are stored in `shared/components`
* Each component can be stored in a separate file. eg: `shared/components/header.html`
* Here how a component looks like:

```html

```

**Usage**
```html

Hello World

```

**How to create a component**

Just create a new `.html` file in `shared/components`, using the structure describe above and that's it, you can use your component.

`bb-tagname` can be whatever you want but it needs a `-` somewhere.

> We use `handlebar` for templating stuff. ([more info here](http://handlebarsjs.com/))