gulp-tpl2amd
Convert js templates to AMD modules no matter what syntax
Install
$ npm install --save-dev gulp-tpl2amd
Usage
▸ bower_components/
▾ js/
▸ myapp/
▾ tpl/ # generated by gulp-tpl2amd
header.js
app.js
▸ vendor/
main.js
▸ scss/
▾ tpl/
▾ myapp/
header.tpl
gulpfile.js
gulpfile.js
var gulp = ;var tpl2amd = ; gulp;
js/myapp/app.js
;
tpl/myapp/header.tpl
{%= title %}
js/myapp/tpl/header.js
;
License
MIT © dexteryy