Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Adding handlebars compilations options support #73

Merged
merged 1 commit into from Nov 3, 2012

Conversation

Projects
None yet
2 participants

Some projects need to customize handlebars template precompilation. Now
it can be done by adding the configuration to the grunt.js file. For
example:

handlebars: {

        built: {
            src: ['app/templates/**/*.html'],
            dest: 'dist/debug/templates.js',
            handlebarsOptions:{
                    data: true,
                    stringParams: true
                }
          }

    }
marcus bronstein Adding support for handlebars compilation options
Some projects need to customize handlebars template precompilation. Now
it can be done by adding the configuration to the grunt.js file. For
example:
handlebars{

	    built: {
	        src: ['app/templates/**/*.html'],
	        dest: 'dist/debug/templates.js',
	        options:{
	        	    data: true,
	        	    stringParams: true
	        	}
	      }
}
7b75b34
Owner

tbranyen commented Nov 3, 2012

Cool man, I'm gonna merge it in, but needs some fixes afterwards. Thanks a ton!

@tbranyen tbranyen added a commit that referenced this pull request Nov 3, 2012

@tbranyen tbranyen Merge pull request #73 from marcusdb/7b75b34c54966ce1e429262d658e10a7…
…f20e8f4e

Adding handlebars compilations options support
739d78a

@tbranyen tbranyen merged commit 739d78a into backbone-boilerplate:master Nov 3, 2012

marcusdb commented Nov 4, 2012

Let me know what you need fixed/improved...

Owner

tbranyen commented Nov 4, 2012

The code style doesn't match the rest of the source. I'll fix it, no worries.

Owner

tbranyen commented Nov 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment