0

I want to render a handlebars script inside a div. This used to work fine with ember.0.9.8.js, but now that I'm using ember-1.0.0-pre.2.js and handlebars-1.0.rc.1.js it doesn't work any more. The rendered script is put outside the div.

Here is a JSFiddle illustrating the problem: http://jsfiddle.net/YnwQB/

Here is the same thing with ember 9.8, which works fine: http://jsfiddle.net/zWGyn/

Is this a bug? Or am I missing something?

0

1 Answer 1

3

I answser my own question based on some comment on the Ember.js issue I reported:

I have to use data-template-name="application" and rootElment in the Ember.Application. Here is the jsfiddle that solves it: http://jsfiddle.net/YnwQB/5/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.