使用options.customEngines 报错
Closed this issue · 2 comments
ishenli commented
您好,我在自定义模板引擎的时候会提示错误,能否咨询一下
代码:
options: {
// 任务特定的选项放在这里
engine: 'myEngine',
customEngines: {
myEngine: function (t) {
return 'myEngine.compile(' + t + ');'
}
}
},
在grunt中会提示一下错误:
Warning: Property 'myengine' of object #<Object> is not a function Use
grunt 版本信息:
grunt-cli v0.1.13
grunt v0.4.4
所以想请问一下是否有解决方案?O(∩_∩)O~~
annnhan commented
使用cptpl最新版本看看https://www.npmjs.org/package/grunt-cptpl
我这边没有复现这个问题,如果还没有解决,可以QQ联系我13124048
ishenli commented
@hanan198501 好,我去试试