2.0.0 • Published 8 years ago

bindling v2.0.0

Weekly downloads
34
License
-
Repository
github
Last release
8 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

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago