HTML uniform template

Each web infrastructure seems to have its own pet template language. Ruby has eRuby , Python django uses the Django Template Language , Haskell has Heist and Hamlet , Java got JSP , and then there PHP ...

My question is: did anyone try to create one boilerplate language for their proper use? Are there template languages ​​that at least have some ubiquitous support among various web frameworks?

+7
source share
5 answers
+5
source

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

It may be the greatest evil that this earth has ever seen, but it is for discussion.

+3
source

NHAML / HAML is the standard closest to you.

0
source

Freemarker (and Velocity to some extent) seems to be supported by a growing number of frameworks (Spring, Tiles, Struts and more ) and can be used to generate code in any structure, but I don’t think there is β€œone template engine to manage them all. " If that were the case, I would choose Freemarker any day

0
source

uh ... Trying to find something similar for a WEB project that can display html from the same templates on both sides. Server and client. The mustache stitches already mentioned should be the most suitable choice so far ...

Perhaps this JSON based solution will sound interesting ...

HAML also looks promising.

0
source

All Articles