我很想在构建过程中预编译我的 ember 模板 - 当我尝试使用 ember-precompile 工具时,生成的函数包含模板数据并将其添加到渲染缓冲区对象,但返回一个空字符串,结果什么也没有正在显示。
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;
});