Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// jshint node:true
module.exports = function (grunt) {
'use strict';
handlebars: {
options: {
amd: true,
namespace: false,
compilerOptions: {
// ограничение списка хелперов
knownHelpers: {
log: false,
lookup: false,
with: false,
blockHelperMissing: false,
helperMissing: false,
eq: true,
i18n_plural: true
// если хэлпер не известен, то ошибка
knownHelpersOnly: true
compile: {
files: [
expand: true,
flatten: false,
src: '**/*.hbs',
dest: 'public/templates/',
cwd: 'templates/',
rename: function (dest, path) {
return dest + path.replace(/\..+$/, '.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.