2012-12-03 13 views
5

Mi piacerebbe precompilare i miei modelli ember come parte del mio processo di compilazione - quando provo a usare lo strumento di precompilazione di ember, la funzione risultante contiene i dati del modello e la aggiunge a un renderbuffer oggetto, ma restituisce una stringa vuota con il risultato che non viene visualizzato nulla.precompilare i modelli di manubri con 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; 
}); 

risposta

2

ho lasciato i tag di script in tutto il modello. DUR

Problemi correlati