![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模板引擎
黄宝康
这个作者很懒,什么都没留下…
展开
-
thymeleaf获取项目路径端口等信息
<script th:inline="javascript" type="text/javascript"> var ctxPath = [[@{/}]]; var ctxPath = /*[[@{/}]]*/''; var ctxPath=[[${#httpServletRequest.getContextPath()}]]; </script> 在项目中的例子 <!DOCTYPE html> <html lang="zh" xmlns原创 2021-04-28 08:36:52 · 1247 阅读 · 0 评论 -
Jade模板引擎学习总结
一、针对p标签含有大量文本的时候,可以使用英文的句点后面接缩进 如: html(lang="en") head title=pageTitle body h1 Jade - node template engine #container.col.class1.class2 p You are amazing...原创 2018-09-03 17:04:27 · 1473 阅读 · 0 评论 -
thymeleaf语法入门
字符串显示/拼接 <span th:text="'welcome to our application '+${username}+'!'"></span> <span th:text="|welcome to our application ${username}!|"></span> if/unless条件 <a th:if="${fla...原创 2019-09-19 15:03:06 · 324 阅读 · 0 评论 -
thymeleaf进阶学习
使用内联文本表示时,必须先用在th:inline="text/javascript/none"激活 <div> <h1>内联</h1> <div th:inline="text"> <p>hello , [[${userName}]]</p> </div> </div> 等价于 <di...原创 2019-09-19 20:18:44 · 355 阅读 · 0 评论