gulp-dotify
Gulp plugin for precompilation of doT templates.
Status
Example
If we have following folder structure:
app/views/users/list.html
app/views/users/detail.html
app/views/products/list.html
app/views/products/detail.html
app/views/layout.html
Then, running this code:
gulp;
Will produce public/js/templates.js
:
windowJST = {};JST'users-list' =
Options
- root -- root folder, where templates are located (affects template name generation),
views
by default - extension -- file extension of template files,
.html
by default - separator -- template namespace-name separator,
-
by default - dictionary -- template dictionary name,
JST
by default
License
MIT