system-paperclip
v1.0.2
Published
Paperclip.js plugin for systemjs
Downloads
7
Readme
Paperclip precompiling plugin for SystemJS
Usage
Install it
Install with an alias of pc
, so we can import 'tmpl.html!pc'
instead of having to do import 'tmpl.html!system-paperclip'
.
jspm install pc=npm:system-paperclip
Import
import compiled from './tmpl.html!pc';
import pc from 'paperclip';
// Pass the compiled function into pc.template to 'rehydrate'
var tmpl = pc.template(compiled);