2.0.0 • Published 9 years ago
bindling v2.0.0
bindling

Declarative View-Model-Binding for HTML
Installation
npm install bindling --save
Usage
var bindling = require('bindling');
var template = require('./template.html');
var model = {
name: 'Enter your name',
update: function(value) {
this.name = value;
}
};
var element = bindling(template, model);
document.querySelector('body').appendChild(element);
template.html
<section>
<input type="text" on-input="update(this.value)"><span>{name}</span>
</section>