grunt-template-bundle

0.2.0 • Public • Published

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"]
		}
	}
})

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-template-bundle

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mach3