2012-12-03 5 views
5

ember-precompile 도구를 사용하려고하면 결과 함수에 템플릿 데이터가 포함되어 renderbuffer에 해당 빌드 프로세스의 일부로 내 ember 템플릿을 사전 컴파일하고 싶습니다. 객체를 반환하지만 아무 것도 표시되지 않는 빈 문자열을 반환합니다.ember.js를 사용하여 핸들 막대 템플릿을 미리 컴파일

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; 
}); 

답변

2

스크립트 태그를 템플릿 주위에 두었습니다. DUR

관련 문제