Bladeren bron

Use th:replace

Marcus Da Coregio 2 jaren geleden
bovenliggende
commit
e1095d6f31

+ 1 - 1
reactive/webflux/kotlin/hello-security/src/main/resources/templates/user/index.html

@@ -6,7 +6,7 @@
         <link rel="stylesheet" href="/static/css/main.css" th:href="@{/css/main.css}" />
     </head>
     <body>
-        <div th:substituteby="index::logout"></div>
+        <div th:replace="index::logout"></div>
         <h1>This is a secured page!</h1>
         <p><a href="/" th:href="@{/}">Back to home page</a></p>
     </body>

+ 1 - 1
servlet/spring-boot/kotlin/hello-security/src/main/resources/templates/user/index.html

@@ -22,7 +22,7 @@
         <link rel="stylesheet" href="/static/css/main.css" th:href="@{/css/main.css}" />
     </head>
     <body>
-        <div th:substituteby="index::logout"></div>
+        <div th:replace="index::logout"></div>
         <h1>This is a secured page!</h1>
         <p><a href="/" th:href="@{/}">Back to home page</a></p>
     </body>