/bazooka

Binds the component to the target html node

Primary LanguageJavaScriptMIT LicenseMIT

bazooka Build Status

Simple tool for declarative binding applications to HTML nodes.

Installation

$ npm install bazooka

Browser Support

Bazooka uses MutationObserver to watch for DOM updates. If you want to use Baz.watch() and need to support browsers without MutationObserver, you'll need any MutationObserver polyfill (we recommend this one)

Examples

To view the examples, clone the bazooka repo, install the dependencies and compile examples:

$ git clone git://github.com/seedofjoy/bazooka.git
$ cd bazooka
$ npm install
$ make examples

Then run whichever example you want by opening index.html in /examples/ subdirectories:

$ cd examples
  • complex — universal component to work with and without bazooka
  • react-basic — bazooka + react
  • gifflix — bazooka + frp (via kefir.js)

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

License

MIT