New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
@marcusdb

marcusdb commented Oct 16, 2012

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
	        	}
	      }
}
@tbranyen

This comment has been minimized.

Member

tbranyen commented Nov 3, 2012

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

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

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

Adding handlebars compilations options support

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

@marcusdb

This comment has been minimized.

marcusdb commented Nov 4, 2012

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

@tbranyen

This comment has been minimized.

Member

tbranyen commented Nov 4, 2012

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

@tbranyen

This comment has been minimized.

Member

tbranyen commented Nov 4, 2012

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