0.1.1 • Published 10 years ago

grunt-html2jsobject v0.1.1

Weekly downloads
4
License
-
Repository
github
Last release
10 years ago

grunt-html2jsobject

Converts HTML templates to a single JavaScript object

Usage

module.exports = function(grunt) {
	grunt.initConfig({
		html2jsobject: {
        	subscriptions: {
        		options: {
        			newObject: false,
        			fileHeaderString: "var nsGmx = nsGmx || {};",
        			fileFooterString: "/* --- footer --- */"
        		},
        	   	container: "nsGmx.Templates.Subscriptions",
            	src: ['client/js/Controls/Subscriptions/*.html'],
        		dest: 'client/js/Controls/Subscriptions/Templates.js'
        	}
       	}
	});

	grunt.loadNpmTasks('grunt-html2jsobject');
}