Skip to content

ractivejs/Ractive-adaptors-Promise

 
 

Repository files navigation

Ractive.js Promise adaptor plugin

Find more Ractive.js plugins at ractivejs.org/plugins

See the demo here.

Usage

Include this file on your page below Ractive, e.g:

<script src='lib/Ractive.js'></script>
<script src='lib/Ractive-adaptors-Promise.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-Promise' );

Add the plugin to the Ractive options:

ractive = new Ractive({
	// ...
	adaptors: [ 'Promise' ]
});

See the demo for an example.

License

Copyright (c) 2013 Lukas Werling. Licensed MIT

Created with the Ractive.js plugin template for Grunt.