thymeleaf介绍


介绍

thymeleaf翻译软件有的将它翻译为"百叶香"有的将它翻译为胸腺

官网: https://www.thymeleaf.org/index.html

home页面有三句话介绍了它

Thymeleaf is a modern server-side Java template engine for both web and standalone environments.
讲的是thymeleaf是适用于web和独立环境的现代服务器端java模板引擎
它代替了java传统的jsp

Thymeleaf’s main goal is to bring elegant natural templates to your development workflow — HTML that can be correctly displayed in browsers and also work as static prototypes, allowing for stronger collaboration in development teams.
thymeleaf主要的目的是给你的开发流程带来一个优雅自然的模板,html可以在浏览器中正确的显示,也可以作为静态原型工作

With modules for Spring Framework, a host of integrations with your favourite tools, and the ability to plug in your own functionality, Thymeleaf is ideal for modern-day HTML5 JVM web development — although there is much more it can do.
thymeleaf拥有适用于spirng框架的模板,集成了你喜欢的大量 的工具,具有及插入您自己的功能的能力,是H5 JVM WEB开发的理想选择,尽管他还有许多工作要做


使用

进入导航上的doc(文档)查看怎么使用

在这里插入图片描述

tutorials(教程)

如何使用thymeleaf
spring集成thymeleaf
thymeleaf拓展

具有详细的文档和应用程序

学习thymeleaf

进入在线文档,学习它的语法

在这里插入图片描述

thymeleaf可以处理哪种模板类型

XML
Valid XML
XHTML
Valid XHTML
HTML5
Legacy HTML5
Also note that validation is only available for XML and XHTML templates.
还需要注意验证只对xml和xhtml可用

在这里插入图片描述

标准表达语法

在这里插入图片描述
在这里插入图片描述


集成thymeleaf

进入Articles(文章)

其他框架集成thymeleaf

在这里插入图片描述

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值