If you get data as JSON services and want to render your HTML on the browser, PURE will certainly help you.
It can be server-side too, using Jaxer (other JS server engine should be ok too, but never tested).
HTML
<div id="hello">
Hello <span class="who">World</span>
</div>
JS
function render1(){
$('#hello').autoRender({ "who": "Mary" });}
Discover more examples on our page Getting Started
Download the lastest version
jQuery.autoRender: Transform your HTML from JSON data automatically
jQuery.render: Transform your HTML from JSON data with directives
jQuery.mapDirective: Apply directives to your HTML
jQuery.compile: Compile your HTML to a JS function
Discuss on our Google Group
Report a bug
PURE Unobtrusive Rendering Engine Please see the documentation for more information If you have a question or an issue post it on: the discussion group Copyright © 2017 Michael Cvilic - BeeBole Permis
现在有许多javascript模板引擎和服务器端的freemarker那些很像,定义模板像下面: <textarea id="template" style="display:none"> <strong>{$T.name} : {$T.list_id}</strong> <table> <tr> <th>编号</th> <th>姓名</th>