Find more Ractive.js plugins at docs.ractivejs.org/latest/plugins
Include this file on your page below Ractive, e.g:
<script src='lib/ractive.js'></script>
<script src='lib/ractive-adaptors-bacon.js'></script>
Or, if you're using a module loader, require this module:
// requiring the plugin will 'activate' it - no need to use the return value
require( 'ractive-adaptors-bacon' );
Then, tell Ractive to use the Bacon
adaptor:
ractive = new Ractive({
el: 'body',
template: myTemplate,
adapt: 'Bacon',
data: {
foo: someReactiveProperty
}
});
This is a work-in-progress! In particular, two-way binding is not yet implemented.
Copyright (c) 2014 Rich Harris. Licensed MIT
Created with the Ractive.js plugin template for Grunt.