grunt-template-bundle
v0.2.0
Published
Grunt plugin to bundle templates
Downloads
2
Readme
grunt-template-bundle
Grunt plugin to bundle templates
grunt.initConfig({
template_bundle: {
options: {
list: false, // if true, export as array
trim: true, // if true, trim indents in template
base: "./templates", // template root directory
template: "module.exports = <%=data %>" // template for dest file
},
bundle: {
dest: "./html/assets/js/templates.js",
src: ["./html/assets/templates/**/*.html"]
}
}
})