JSON的JavaScript / Dojo模板[重复]

时间:2021-08-29 06:55:53

Possible Duplicate:
Good Javascript template engine to work with JSON

可能重复:使用JSON的好Javascript模板引擎

I'm searching for a JavaScript / Dojo template to be used with JSON.

我正在搜索与JSON一起使用的JavaScript / Dojo模板。

2 个解决方案

#1


1  

There's also dojox.dtl (not very well maintained ATM) and dojo.replace for doing simple string substitutions.

还有dojox.dtl(不是很好维护的ATM)和dojo.replace用于进行简单的字符串替换。

#2


2  

You could use Mustache, which is a standalone template lib. Though it's based on logicless templating. https://github.com/janl/mustache.js

您可以使用Mustache,它是一个独立的模板库。虽然它基于无逻辑模板。 https://github.com/janl/mustache.js

It has a Dojo wrapper as well.

它还有一个Dojo包装器。

#1


1  

There's also dojox.dtl (not very well maintained ATM) and dojo.replace for doing simple string substitutions.

还有dojox.dtl(不是很好维护的ATM)和dojo.replace用于进行简单的字符串替换。

#2


2  

You could use Mustache, which is a standalone template lib. Though it's based on logicless templating. https://github.com/janl/mustache.js

您可以使用Mustache,它是一个独立的模板库。虽然它基于无逻辑模板。 https://github.com/janl/mustache.js

It has a Dojo wrapper as well.

它还有一个Dojo包装器。