如何在ember中将把手模板渲染为HTML字符串

rog*_*rgl 1 handlebars.js ember.js

我想知道如何翻译

 var template = Handlebars.compile( $( '#row-tpl' ).html() ); 
Run Code Online (Sandbox Code Playgroud)

在恩伯.

我在products.js中定义了一个模板,如下所示:

{{ProductName}}
Run Code Online (Sandbox Code Playgroud)

这创造了:Ember.TEMPLATES.products

但是我如何将其渲染为纯HTML?我需要html来设置KendoUI窗口的内容.

关心罗杰

小智 5

{{{ProductName}}}而不是{{ProductName}}.