lundi 23 mars 2015

Ember 1.11.0-beta "A block may only be used inside an HTML element or another block" error

I'm trying to load some remote templates using 1.11 beta 4 and am running into an error when ember-template-compiler tried to compile the template. It throws the "A block may only be used inside an HTML element or another block" exception. I am compiling the template with:



var compiledTemplate = Ember.Handlebars.compile(templateText);


Has anyone seen this before? The template is:



<p{{#id}} id="{{id}}"{{/id}} data-name="{{name}}" class="flag {{#alert}}{{type}} {{type}}-input{{/alert}} {{styleClass}}{{^alert}} hide{{/alert}}"><span{{#id}} id="{{alertSevId}}"{{/id}} class="alertSeverity icon">{{#alert}}{{type}}{{/alert}}</span><span{{#id}} id="{{alertMsgId}}"{{/id}} class="alertMessage">{{#alert}}{{message}}{{/alert}}</span></p>




Aucun commentaire:

Enregistrer un commentaire