Lego plugin to bind a node innerHTML to a store attribute
npm install html-brickLego plugin to bind a node inner HTML with a store attribute
with component:
$ component install bredele/html-brick
with nodejs:
$ component install html-brick
First, add the plugin to your view (see lego to know more about views):
``js`
view.add('data-html', require('html-brick'));
`html`
The plugin will look if it finds the property github and listen for changes.
`js`
view.set('github', 'bredele');
will display:
` bredelehtml`
see live example
lego allows variable substitutions
` {{ github }}html``
MIT