Java模板库类似于ZPT(属性语言) [英] Java Template library similar to ZPT (attribute language)

查看:131
本文介绍了Java模板库类似于ZPT(属性语言)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Python中一直使用 ZPT ,我喜欢模板语言。我正在寻找类似于Java的东西,但无法真正找到我喜欢的东西。最接近的是 FreeMarker



我看过的FreeMarker和其他Java模板引擎是它们的JSP风格语法,它允许不符合要求的XML。我只是想知道是否有一个类似于Zope页面模板的Java模板引擎,因此它是一种需要有效xml的属性语言。

解决方案我认为在那里你可以找到相当多的模板引擎:
$ b $ ul
  • 剑桥

  • Thymeleaf

  • JTP (死 - 但但确切的实现)

  • javaTAL(死 - 但确切的实现)

    $ b $其他支持有效html的方法是:



    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:

    这篇关于Java模板库类似于ZPT(属性语言)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆