필요에 따라 Jquery 템플릿 (http://api.jquery.com/category/plugins/templates/)을 사용할 수있는 것 같습니다. 여기
내 프로젝트 중 하나에서 임의 (크게 응축) 샘플 템플릿입니다 :
<table>
<tr>
<th>Response Status</th>
<th>Response Reason</th>
</tr>
<tr>
<td>${RepsonseStatus}</td>
<td>${ResponseReason}</td>
</tr>
참고 $ {} 태그 -이 런타임에서 JSON 데이터로 대체됩니다. 여기
그리고는
//myTemplate can be sent from a server side function
var myTemplate = SomeFunctionToGetMyTemplate();
//myData is a javascript object/json from the server
var myData = SomeFunctionToGetMyData();
//the html function just replaces the html of the context node (#myTargetDiv) with the //output of the $.tmpl function
$("#myTargetDiv").html($.tmpl(myTemplate, myData));
JQuery와 템플릿이 공식적으로 사용되지 않습니다 데이터와 템플릿을 병합하는 방법이지만, JQuery와의 공식 교체 (AFAIK) 아직 존재하지 않는다. jquery 템플릿을위한 pluralsight에 대한 유용한 비디오 튜토리얼이 있습니다.
감사를 사용할 수있다, 나는 그들이 그 일을하고 방법을 배울의 HighWire로 본다. 그것은 그들 자신의 프레임 워크를 구축 한 것 같습니다. Highwire는 shopify.com처럼 보입니다. – nguyentranvu