I'm using grunt-dust
to compile dustjs templates, but now I've run into the problem that I need to use dust helpers (like @eq
) which apparently grunt-dust ignores completly.
I've installed dustjs-helpers
over npm but just can't figure out how to adjust my grunt configuration to handle them. I simplified it to keep the relevant parts.
grunt.initConfig( {
...
dust: {
defaults: {
files: {
'public/js/views.js': [ ... directories ... ]
},
options: {
wrapper: false,
basePath: 'private/',
useBaseName: true,
wrapperOptions: {
templatesNamesGenerator: function( options, file ) {
// returns an altered template name
}
}
}
}
},
...
} )
...
grunt.loadNpmTasks('grunt-dust')
...
grunt.registerTask( ... )
So far, it works fine and compiles the dustjs templates as expected.
How can I include dustjs-helpers
with grunt-dust
?