gobble-ractive
Compile Ractive.js components with gobble.
Installation
First, you need to have gobble installed - see the gobble readme for details. Then,
npm i -D gobble-ractive
Usage
gobblefile.js
var gobble = ;moduleexports = ;
Supported output types are amd
, cjs
(i.e. node.js modules) or es6
. If the second argument is omitted, amd
is the default type.
gobble-browserify
Example withGiven this directory structure:
./gobblefile.js
./src/component/some-component.html
./src/js/app.js
Then, the gobblefile.js should include:
And the javascript/app.js can include:
var SomeComponent = ; var thing = el: '#id-of-the-div-where-this-component-should-be-displayed';
License
MIT. Copyright 2014 Rich Harris