1

I would like to know how to translate

 var template = Handlebars.compile( $( '#row-tpl' ).html() ); 

within Ember.

I defined a template in products.js like this:

{{ProductName}}

That creates: Ember.TEMPLATES.products

But how do I render this to pure html ? I need the html to set the content for a KendoUI window.

Regards Roger

2 Answers 2

5

Use {{{ProductName}}} instead of {{ProductName}}.

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

Comments

1

I know this is an older question/answer. But in the event of someone landing here I just wanted to update the accepted answer

from having this in the template

{{{safehtml}}

instead return this from your computed property

return Ember.String.htmlSafe(ProductName);

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.