Watch task #3

Closed
barraponto opened this Issue Jun 24, 2012 · 4 comments

Projects

None yet

3 participants

@barraponto

How should I write a watch task for handlebars?

@timoxley
Contributor
timoxley commented Jul 5, 2012

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'
    },
@timoxley
Contributor

@barraponto did you sort this out?

@barraponto

I canged back to underscore templates, due to other issues :P But I'll try and change to handlebars again, and provide feedback.

@timoxley
Contributor

No worries, let me know how it goes.

@luccastera luccastera closed this Jul 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment