Skip to content

Commit 6bd87f3

Browse files
committed
调整为伪属性
1 parent b62bf4c commit 6bd87f3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/resources/templates/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml"
33
xmlns:th="http://www.thymeleaf.org" lang="en-US"
44
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
5-
layout:decorate="layout">
5+
data-layout-decorate="layout">
66
<head>
77
<meta charset="UTF-8"/>
88
<title>Welcome</title>
@@ -11,9 +11,8 @@
1111
</script>
1212
</head>
1313
<body>
14-
<div layout:fragment="content">
14+
<div data-layout-fragment="content">
1515
goood22223333
1616
</div>
17-
<br/>
1817
</body>
1918
</html>

src/main/resources/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<header>
1111
<h1>My website2</h1>
1212
</header>
13-
<section layout:fragment="content">
13+
<section data-layout-fragment="content">
1414
<p>Page content goes here</p>
1515
</section>
1616
</body>

0 commit comments

Comments
 (0)