You need to register {{minify}} helper explicitly in the Gruntfile
helpers: ['handlebars-helper-minify', 'templates/helpers/*.js']
Alternatively, try add handlebars-helper-minify
module to devDependencies
and keywords
in your project's package.json
.
{
"devDependencies": {
"handlebars-helper-minify": "~0.1.1"
},
"keywords": [
"handlebars-helper-minify"
]
}
In your master.hbs
layout, wrap it with {{minify}}
for example:
{{#minify}}
{{> header }}
{{> body }}
{{> footer }}
{{/minify}}