Closed barraponto closed 12 years ago
just use the built-in grunt watch and make sure the handlebars command is in the task list e.g.
handlebars: {
all: {
src: 'src/templates',
dest: 'public/js/templates.js'
}
},
watch: {
files: ['<config:lint.files>', 'src/templates/*.handlebars'],
tasks: 'lint handlebars etc'
},
@barraponto did you sort this out?
I canged back to underscore templates, due to other issues :P But I'll try and change to handlebars again, and provide feedback.
No worries, let me know how it goes.
How should I write a watch task for handlebars?