我想预编译我的余烬模板作为我的构建过程的一部分-当我尝试使用余烬预编译工具时,生成的函数包含模板数据并将其添加到renderbuffer对象中,但返回一个空字符串,导致没有显示任何内容。
Ember.TEMPLATES["ins"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
helpers = helpers || Ember.Handlebars.helpers;
var buffer = '', stack1, stack2, stack3, foundHelper, tmp1, self=this, escapeExpression=this.escapeExpression;
data.buffer.push(" <script type=\"text/x-handlebars\" data-template-name=\"FramesInstructions\">\n Instructions - Click on the frames in the correct order!<br>\n <a ");
stack1 = depth0;
stack2 = "watchCommercial";
stack3 = helpers.action;
tmp1 = {};
debugger
tmp1.hash = {};
tmp1.contexts = [];
tmp1.contexts.push(stack1);
tmp1.data = data;
stack1 = stack3.call(depth0, stack2, tmp1);
data.buffer.push(escapeExpression(stack1) + "> START </a>\n </script>\n");
return buffer;
});
我在模板周围留下了脚本标签。DUR