Integration of the Grunt-Frontend- with the Maven-Backend-Project
[examples/maven-grunt-integration] / src / main / frontend / html / layout.html
index be958d5..1e84a84 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.thymeleaf.org">
 
 <head>
 
@@ -7,21 +7,21 @@
   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
   <meta name="viewport" content="width=device-width, initial-scale=1" />
 
-  <title>Layout-Template</title>
+  <title layout:title-pattern="Maven/Grunt-Integration - $CONTENT_TITLE">Layout-Template</title>
 
-  <link rel="stylesheet" type="text/css" href="../../css/frontend.css" />
+  <link rel="stylesheet" type="text/css" href="../../css/frontend.css" th:hre="@{'/css/frontend.css'}" />
 
 </head>
 
 <body>
 
   <header>
-    <h2>yourSHOUTER - Startseite</h2>
+    <h2 th:text="yourSHOUTER">yourSHOUTER - Startseite</h2>
     <hr />
     <!-- Navigation -->
     <nav id="menu" class="navbar navbar-submenu navbar-fixed-top">
       <h3 class="sr-only">Navigation</h3>
-      <ul>
+      <ul layout:fragment="menu">
         <li><strong>Home</strong></li>
         <li><a href="#a">A</a></li>
         <li><a href="#b">B</a></li>
@@ -34,7 +34,7 @@
 
   <main>
 
-    <article id="top">
+    <article id="top" layout:fragment="content">
       <h1>Layout-Template</h1>
       <p>
         Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do