2
到的链路Sails JS with EJS but linker to compile handlebars public templates ,它看起来直截了当但不知何故,它不与我目前的帆版本玉石工作Sails.js,灰烬,车把和通过咕噜-烬模板配置:模板文件未创建
下面是目前咕噜配置在任务/配置/ emberTemplates.js
module.exports = function (grunt) {
grunt.config.set('emberTemplates', {
dev: {
compile: {
options: {
amd: true,
templateBasePath: /assets\/templates\//
},
files: {
".tmp/public/templates.js": ['assets/templates/**/*.hbs']
}
}
}
});
//console.log('loading grunt-ember-template');
grunt.loadNpmTasks('grunt-ember-templates');
};
我可以看到,任务得到由步兵拿起
> sails lift --prod
.....
Grunt :: Running "emberTemplates:dev" (emberTemplates) task
但是./tmp/public/templates.js文件永远不会被创建。
我把头撞在墙上8个小时,不知道该去哪里。 任何帮助是apreciated。 感谢