gulp-jstemplater
Compiles all templates into one json. Tested with mustache (should work with every mustache-like templates).
Example
Compile all templates at path/**/*.html
into file templates.js
and put it to destpath
.
gulptask 'templates' -> gulp
If you have files
/path/layouthtml/path/widgets/newonehtml/path/widgets/oldhtml/path/widgets/sidebar/lefthtml/path/footer/bottomhtml
then it will compile to templates.js
:
TMPL = layout: "..." widgets: newone: "..." old: "..." sidebar: left: "..." footer: bottom: "..." ;
Options
variable
Name of the variable. If it not provided, then jstemplater will compile to
layout: "..." widgets: newone: "..." old: "..." sidebar: left: "..." footer: bottom: "..."