Thymeleaf 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
Thymeleaf 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
Thymeleaf 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 Apache
开发语言 Java 查看源码 »
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 红薯
适用人群 未知
收录时间 2011-06-28

软件简介

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

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

示例模板:

<table>
  <thead>
    <tr>
      <th th:text="#{msgs.headers.name}">Name</td>
      <th th:text="#{msgs.headers.price}">Price</td>
    </tr>
  </thead>
  <tbody>
    <tr th:each="prod : ${allProducts}">
      <td th:text="${prod.name}">Oranges</td>
      <td th:text="${#numbers.formatDecimal(prod.price,1,2)}">0.99</td>
    </tr>
  </tbody>
</table>

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击加入讨论🔥(15)
2018/10/13 15:21

Thymeleaf 3.0.10 发布,XML/XHTML/HTML5 模板引擎

Thymeleaf 3.0.10 发布,Thymeleaf 是一个 XML/XHTML/HTML5 模板引擎,可用于 Web 与非 Web 环境中的应用开发。它是一个开源的 Java 库,基于 Apache License 2.0 许可,由 Daniel Fernández 创建。 新版本基于 JDK 11 构建,采用了新的 Java 11 JavaDoc 格式。 更新如下: Changes to the Thymeleaf CORE: Fixed StackOverflowError when inserting content before first element of model in a model processor. Improved re...

0
2
发表了资讯
2017/11/06 09:19

Thymeleaf 3.0.9 和 2.1.6 发布,HTML 5 模板引擎

Thymeleaf 3.0.9 和 2.1.6 已发布,Thymeleaf是一个 XML/XHTML/HTML5 模板引擎,可用于 Web 与非 Web 环境中的应用开发。它是一个开源的 Java 库,基于 Apache License 2.0 许可,由 Daniel Fernández 创建。 Thymeleaf 3.0.9 更新内容如下: - Fixed hit ratio in StandardCache not being correctly computed (always 1 or 0). - Improve restricted expression evaluation mode to restrict access to some request featur...

1
10
发表了资讯
2017/10/03 23:53

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() and SessionAttributesMap#isEmpty(). Fixed DateFormat implementation being used for Jackson-based serializati...

2
15
发表了资讯
2017/07/25 09:44

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 parsers when reading (which would be according to the spec). Improved #numbers.sequence(.....

21
12
发表了资讯
2017/05/08 10:20

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. - Fixed prevent fragments without a signature being called with unnamed parameters. - Added allowing template s...

24
18
发表了资讯
2017/03/31 10:38

Thymeleaf 3.0.4、3.0.5 发布,HTML 5 模板引擎

Thymeleaf 3.0.4 以及 3.0.5 发布,更新内容如下: 3.0.5 Fixed 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.4 Fixed possible bad parsing of comment start/end delimiters in JavaScript and CSS inlining when the 2K buffer used at the Text Parse...

18
11
发表了资讯
2017/01/05 19:51

Thymeleaf 3.0.3 发布,HTML5模板引擎

Thymeleaf 3.0.3 发布了。Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于Apache License 2.0许可,由Daniel Fernández创建。本次更新内容如下: Fixed empty comments (<!---->) not being properly parsed and recognised (AttoParser). Fixed text parser wrongly recognizing comment start prefixes ('/*') even if inside JavaScript/CSS literals. Fixed #num...

1
15
发表了资讯
2016/10/09 00:00

Thymeleaf 3.0.2 发布,HTML 5 模板引擎

Thymeleaf 3.0.2发布了,Thymeleaf 是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。 Thymeleaf提供了一个用于整合Spring MVC的可选模块,在应用开发中,你可以使用Thymeleaf来完全代替JSP,或其他模板引擎,如Velocity、FreeMarker等。 Thymeleaf的主要目标在于提供一种可被浏览器正确显示的、格式良好的模板创建方式,因此也可以用作静态建模。你可以使用它创建经过验证的XML与 HTML模板。相对于编写逻辑或...

17
23
发表了资讯
2016/07/21 00:00

Thymeleaf 3.0.1 发布,HTML 5 模板引擎

Thymeleaf 3.0.1 发布了,Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。 Thymeleaf提供了一个用于整合Spring MVC的可选模块,在应用开发中,你可以使用Thymeleaf来完全代替JSP,或其他模板引擎,如Velocity、FreeMarker等。 Thymeleaf的主要目标在于提供一种可被浏览器正确显示的、格式良好的模板创建方式,因此也可以用作静态建模。你可以使用它创建经过验证的XML与 HTML模板。相对于编写逻辑或...

11
29
发表了资讯
2016/05/09 00:00

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、JAVASCRIPT、CSS、RAW Full HTML5 support, new parsing infrastructure 片段表达式 New syntax for textual template mode...

9
25
发表了资讯
2016/04/18 00:00

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 重构Message Resolution API 片段表达式 无操作令牌 解耦模板逻辑 新的扩展点: Link Builders 节流...

14
23
发表了资讯
2016/02/25 00:00

Thymeleaf 3.0.0.BETA02 发布,HTML 5 模板引擎

Thymeleaf 3.0.0.BETA02 发布,主要的新特性有: New event-based template processing engine Full HTML5 support, new parsing infrastructure Thymeleaf 3.0 Template Mode set Inlined output expressions New syntax for textual template modes Refactoring of the inlining mechanism New Processor API New Pre-Processor and Post-Processor APIs New Dialect API Refactoring of the Template Resolution API Refact...

8
24
发表了资讯
2013/11/05 00:00

Thymeleaf 2.1 发布,HTML5 模板引擎

Thymeleaf 2.1 发布了,Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于Apache License 2.0许可,由Daniel Fernández创建,该作者还是Java加密库Jasypt的作者。 该版本包含大量新特性,主要有: New Features in Thymeleaf Core: Fragment inclusion: Same-template fragments Parameterizable fragment signatures Expression improvements: More powerful DOM selec...

6
35
发表了资讯
2012/02/09 00:00

Thymeleaf 2.0 发布,HTML5 模板引擎

Thymeleaf 2.0 发布了,该版本主要改进: 性能提升:完全重写的模板执行引擎,几乎重新设计的内部架构,性能较1.1版本有了大幅提升。 在standard dialects 版本中新增了th:switch/th:case属性,th:switch属性与Java语言中的switch语句类似。 在th:remove属性中添加了all-but-first值,可有效节省一些重复代码。 在错误信息中显示错误位置的行号。 DOM选择器。 处理不完整模板:之前的Thymeleaf不能处理不完整的XML文件,这限制了...

0
3
发表了资讯
2012/01/27 00:00

Thymeleaf 1.1.4 发布,HTML5模板引擎

Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于 Apache License 2.0许可,由Daniel Fernández创建,该作者还是Java加密库Jasypt的作者。 Thymeleaf 1.1.4 主要是修复了一个 bug ,详情请看 changelog

1
2
发表了资讯
2011/09/21 00:00

Thymeleaf 1.1.1 发布,HTML5模板引擎

Thymeleaf 1.1.1 发布了,Thymeleaf 是一个 XML/XHTML/HTML5 模板引擎,提供一组模板文件到文本的转换。 下载地址:thymeleaf-1.1.1-dist.zip

0
6
发表了资讯
2011/07/20 00:00

Thymeleaf 1.0.0 发布,HTML5模板引擎

Thymeleaf 1.0.0 发布。Thymeleaf是一个Java库。这是个XML/XHTML/HTML5模板引擎,提供一组模板文件到文本的转换。Thymeleaf更适应在web应用中提供XHTML/HTML5的服务,但也可以在web或任何的独立应用中处理任何的XML文件。也包括一个特定可选的模块来与Spring MVC整合,可使你可以在应用中替代JSP。 更新日志: thymeleaf: ChangeLog thymeleaf-spring3: ChangeLog 下载: https://sourceforge.net/projects/thymeleaf/files/ Ma...

1
4
发表了资讯
2011/06/28 00:00

Thymeleaf 1.0.0-beta3 发布,HTML5模板引擎

Thymeleaf是一个Java库。这是个XML/XHTML/HTML5模板引擎,提供一组模板文件到文本的转换。 Thymeleaf更适应在web应用中提供XHTML/HTML5的服务,但也可以在web或任何的独立应用中处理任何的XML文件。也包括一个特定可选的模块来与Spring MVC整合,可使你可以在应用中替代JSP。 示例代码如下: <table> <thead> <tr> <th th:text="#{msgs.headers.name}">Name</td> <th th:text="#{msgs.headers.price}">Price</td> </tr> </thead...

2
5
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
15 评论
253 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部