简体   繁体   中英

Uniform HTML templating language

It seems like every web framework has its own pet template language. Ruby has eRuby , Python's django uses the Django template language , Haskell has Heist and Hamlet , Java's got JSP , and then there's PHP...

My question is, has anyone tried creating One Templating Language to Rule Them All? Are there any such templating languages that at least have some widespread support amongst the varying web frameworks?

小胡子也许吧。

XSLT might be a candidate as a "universal" template language.

It might also be the greatest evil that this land has ever seen, but that's up for debate.

uh... Trying to find something like that for WEB project which would be able to render html from same templates at both sides. Server and Client. Already mentioned Mustache seams to be most suitable choice so far...

Maybe this JSON based solution will sound interesting...

Also HAML looks promising.

NHAML / HAML是您最接近标准的。

Freemarker (and Velocity to some extent) seem to be supported by a growing number of frameworks (Spring, Tiles, Struts and more ) and can be used to generate code in any framework, but I don't think there is "one template engine to rule them all". If there was though, I would choose Freemarker any day

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM