2.0.0 • Published 9 years ago

bindling v2.0.0

Weekly downloads
34
License
-
Repository
github
Last release
9 years ago

bindling Build Status npm version

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>
2.0.0

9 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago