node package manager

system-paperclip

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);