Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于Apache LICEnse 2.0许可,由DaNiel Fernández创建,该作者还是Java加密库Jasypt的作者。

Thymeleaf提供了一个用于整合Spring MVC的可选模块,在应用开发中,你可以使用Thymeleaf来完全代替JSP,或其他模板引擎,如VelocityFreeMarker等。Thymeleaf的主要目标在于提供一种可被浏览器正确显示的、格式良好的模板创建方式,因此也可以用作静态建模。你可以使用它创建经过验证的XML与HTML模板。相对于编写逻辑或代码,开发者只需将标签属性添加到模板中即可。接下来,这些标签属性就会在DOM(文档对象模型)上执行预先制定好的逻辑。

示例模板:

<table>
  <thead>
    <tr>
      <th th:text="#{msgs.headers.name}">Nametd>
      <th th:text="#{msgs.headers.price}">Pricetd>
    tr>
  thead>
  <tbody>
    <tr th:each="prod : ${allProducts}">
      <td th:text="${prod.name}">Orangestd>
      <td th:text="${#numbers.formatDeCimal(prod.price,1,2)}">0.99td>
    tr>
  tbody>
table>

Thymeleaf 3.0.8 发布,HTML 5 模板引擎
Thymeleaf 3.0.8 发布了,Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于Apache License 2.0许可,由Daniel Fernández创建。本次更新内容如下:Fixed WebEngineContext returning wrong boolean values for ServletContextAttributesMap#isEmpty()

发布于 2017-10-04 01:27:36 | 150 次阅读

Thymeleaf 3.0.7 发布,HTML 5 模板引擎
Thymeleaf 3.0.7 发布,更新内容如下:Fixed JavaScript line comment (//) parsing breaks when EOF comes before n (script ends in the comment line).Improved escaping of attributes in XML template mode: t, n and r now being always escaped in order to prevent them being normalised into white spaces by XML

发布于 2017-07-25 02:50:59 | 161 次阅读

Thymeleaf 3.0.6 发布,HTML 5 模板引擎
Thymeleaf 3.0.6 发布,更新内容如下:- Fixed unclosed quote in JavaScript/CSS comments breaking parsing (wrongly considered literal starts).- Fixed bad parsing of '/content()' selector (AttoParser) in some scenarios, leading to suboptimal execution of  this type of fragment selection.- F

发布于 2017-05-08 02:48:39 | 162 次阅读

Thymeleaf 3.0.4、3.0.5 发布,HTML 5 模板引擎
Thymeleaf 3.0.4 以及 3.0.5 发布,更新内容如下:3.0.5Fixed bad interaction of literal parsing in javascript inlining introduced in 3.0.4, causing inlined expressions containing literals ('...') to not be adequately parsed, and therefore not executed at all.3.0.4Fixed possible bad parsing

发布于 2017-03-31 03:25:34 | 215 次阅读

Thymeleaf 3.0.3 发布,HTML5模板引擎
Thymeleaf 3.0.3 发布了。Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于Apache License 2.0许可,由Daniel Fernández创建。本次更新内容如下:

发布于 2017-01-05 16:24:02 | 185 次阅读

Thymeleaf 3.0.2 发布,HTML 5 模板引擎
Thymeleaf 3.0.2发布了,Thymeleaf 是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。Thymeleaf提供了一个用于整合Spring MVC的可选模块,在应用开发中,你可以使用Thymeleaf来完全代替JSP,或其他模板引擎,如Velocity、FreeMarker等。 Thymeleaf的主要目标在于提供一种可被浏览器正确显示的、格式

发布于 2016-10-09 07:18:46 | 147 次阅读

Thymeleaf 3.0.1 发布,HTML 5 模板引擎
Thymeleaf 3.0.1 发布了,Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。Thymeleaf提供了一个用于整合Spring MVC的可选模块,在应用开发中,你可以使用Thymeleaf来完全代替JSP,或其他模板引擎,如Velocity、FreeMarker等。 Thymeleaf的主要目标在于提供一种可被浏览器正确显示的、格式良好

发布于 2016-07-21 09:22:53 | 195 次阅读

Thymeleaf 3.0.0 正式发布,HTML 5 模板引擎
Thymeleaf 3.0.0 正式发布。主要更新内容:Template更新删除任何 th:inline="text" 属性配置更新thymeleaf-spring4 集成包和Java配置显示Thymeleaf3结构全部HTML5标记支持Thymeleaf3.0不再基于XML详情: the Thymeleaf 3.0.0.BETA03 announcement.Template 模式新模板模式有:HTML、XML、TEXT、JAVASCR

发布于 2016-05-09 00:20:08 | 268 次阅读

Thymeleaf 3.0.0.BETA3 发布,HTML 5 模板引擎
Thymeleaf 3.0.0.BETA3 发布了。新特性:新的基于于事件的模板处理引擎全面支持 HTML5,新的基础设施解析Thymeleaf 3.0 模板模式集 内嵌输出表达式应用于文本模板模式的新语法重构内联机制新的 Processor API新的 Pre-Processor 和 Post-Processor API新的 Dialect API重构 Template Resolution API重构 Context API重

发布于 2016-04-18 04:21:26 | 142 次阅读

Thymeleaf 3.0.0.BETA02 发布,HTML 5 模板引擎
Thymeleaf 3.0.0.BETA02 发布,主要的新特性有:New event-based template processing engineFull HTML5 support, new parsing infrastructureThymeleaf 3.0 Template Mode setInlined output expressionsNew syntax for textual template modesRefactoring of the inlining mechanismNew Processor APINew Pre-Processor a

发布于 2016-02-25 02:31:19 | 334 次阅读


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务