English 中文(简体)
HTML如根什或萨普斯塔尔的超文本模板发动机
原标题:An HTML template engine for Java like Genshi or Zope s TAL

我需要与网络设计师合作......

你们能告诉我什么?

预 收

<>FY:

Zope s TAL

Template Attribute Language(TAL)是用来生成动态超文本和XML网页的一种温带语言。 其主要目标是简化方案制定者和设计者之间的合作。 通过将TAL声明纳入有效的超文本(或XML)标签来做到这一点,这些标记可以使用共同设计工具。

Genshi

根西是一座灰色图书馆,为网上产出生成提供一套综合部件,用于文 par、制作和处理超文本、XML或其他文字内容。

主要特征是标语的模版语言:不同于只处理tes和(如果你重装 l)特性的常规模板语言,根西人知道标签、属性和实际文本节点之间的区别,并且利用这种知识来利用你的优势。

NOTE: The key feature here is:

为此,将TAL(或 Genshi)陈述纳入有效的超文本(或XML)标签内,然后可以使用共同设计工具。

Example: Genshi:

<div>
  <b py:if="foo">${bar}</b>
</div>

TAL:

<h1 tal:content="string:Some altogether different headline">
The headline visible to the designer
</h1>
最佳回答

也可检查Apache Tapestry。 它比超声望发动机更是网络框架,但功能与你需要类似。

问题回答

Just adding another framework similar to Tapestry... wicket, which has the feature that I asked for, too.

关于Papestry和Wicket之间的比较,见

我刚刚见到Thymehil(。 Quoting DuyHai s Java Blog article Spring MVC part III: ThymeLeaf Integration:

与许多人不同 Java 同类的拖拉发动机,Thymehil是一种完整的超负荷发动机,这意味着模板本身是一个可由任何网络浏览器提供的超文本文档。

如我所知,唯一另一个基于属性模板的发动机是TAL(Template Attribute 语),使用Adhur语。

模板本身可在网上浏览器上展示,这是一个重要特点。 确实,在开发网页时,人们首先开始设计全球倡议的静态部分(cs、肤色、布局),然后把重点放在动态部分(数据注入、有条件提供)。 A. 青leaf 我们不需要增加任何新的主角,只是新的属性。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签