Possible Duplicate:
Good Javascript template engine to work with JSON
I'm searching for a JavaScript / Dojo template to be used with JSON.
You could use Mustache, which is a standalone template lib. Though it's based on logicless templating. https://github.com/janl/mustache.js
It has a Dojo wrapper as well.
There's also dojox.dtl (not very well maintained ATM) and dojo.replace for doing simple string substitutions.
精彩评论