html-templater
A small wrapper around juice and handlebars that renders and inlines css for html templates.
Tests
make test
Usage
var HtmlTemplater = ; /* * Html templater allows you to specify a template, along with optional layout * and css strings, and produces an html page with inlined css. The templater * uses handlebar-layouts to support this layout templating. The layout, if * present, is automatically registered to whatever the template specifies * in the {{extend}} block (In this case: "layout").*/ var htmlTemplater = htmlTemplater; /* * You can also register file assets for htmlTemplater to load. If both * the file and non file option exist, the file is simply loaded and appended * to the string supplied in the non file option.*/ var htmlTemplater = htmlTemplater; /* * You can also register (and unregister) helpers to be used in rendering. */var htmlTemplater = ;htmlTemplater;// now {{testHelper testVar}} in your layouts will be rendered as "helped", per this helper function