Allows to use Backbone view as HTML element
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
dist
src
.gitignore
README.md
bower.json
gulpfile.js
package.json

README.md

Reactive Elements

Backbone views as native HTML elements (web components)

Tiny Google Polymer or Mozilla X-Tags add-on which allows to use Backbone views as custom HTML elements. Also works with a native Custom Elements implementation if present.

Demo

Example

Using component in HTML

<body>
	<my-backbone-component label="{window.myLabel}"></my-backbone-component>
</body>

Backbone view definition

//TODO backbone view example here

document.registerBackbone('my-backbone-component', BackboneView);

Find complete examples in corresponding folder.

Nesting

Original content of a custom element is injected to component as attributes._content.

<my-backbone-component>Hello world</my-backbone-component>

In this case attributes._content is equal to "Hello world".

Dependencies

License

MIT: http://mit-license.org/

Copyright 2014 Stepan Suvorov aka stevermeister, Denis Radin aka PixelsCommander