Demo of basic SourceJS Plugin structure. Read more about Plugin development in docs http://sourcejs.com/docs/api/plugins.
Compatible with SourceJS ~0.4.0.
To create new SourceJS Plugin, we recommend using the official generator - https://github.com/sourcejs/generator-sourcejs.
To install plugin, run npm command in sourcejs/user
folder:
npm install sourcejs-tpl-plugin --save
Then run Grunt update in SourceJS root:
cd ..
grunt update
After restarting your app, plugin will be loaded automatically. To disable it, remove npm plugin and run grunt update
again.