Java模板库类似于ZPT(属性语言) [英] Java Template library similar to ZPT (attribute language)
问题描述
我最近在Python中一直使用 ZPT ,我喜欢模板语言。我正在寻找类似于Java的东西,但无法真正找到我喜欢的东西。最接近的是 FreeMarker 。
我看过的FreeMarker和其他Java模板引擎是它们的JSP风格语法,它允许不符合要求的XML。我只是想知道是否有一个类似于Zope页面模板的Java模板引擎,因此它是一种需要有效xml的属性语言。
$ b $ ul
$ b $其他支持有效html的方法是:
- Snippetory a>(不绑定html)
- 电梯(scala) >
I've been using ZPT in python recently and I love the templating language. I was looking for something similar for Java but couldn't really find anything I liked as well. The closest thing is FreeMarker.
The problem with FreeMarker and the other Java template engines I looked at was their JSP style syntax that allows for non-conforming XML. I was just wondering if there was a Java template engine that is similar to Zope Page Templates such that it's an "attribute" language that requires valid xml.
I think think there quite some of the template engines your looking for:
Other approaches supporting valid html are:
- Snippetory (Not bound to html)
- Lift (scala)
这篇关于Java模板库类似于ZPT(属性语言)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!