Das Template berücksichtigt über die Variable json übergebene Variablen
[website] / dist / templates / fragments.html
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.thymeleaf.org">
3   <head>
4     <title>Fragments</title>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6     <link rel="stylesheet/less" type="text/css" href="../less/base.less"/>
7     <link rel="stylesheet/less" type="text/css" href="../less/screen.less" media="screen"/>
8     <link rel="stylesheet/less" type="text/css" href="../less/print.less" media="print"/>
9     <script src="../js/less-1.7.0.min.js"></script>
10   </head>
11   <body>
12     <h1>Explanation fo the german word "Impressum"</h1>
13     <hr />
14     <aside class="m" th:fragment="about">
15       <h1>What the f*#!@ is an <em>Impressum</em> ?!?</h1>
16       The german law enforces the so called <em>Impressum</em> to enable
17       customers to easily find out all juristically relevant informations
18       about the company, that rules a site.
19       <h1>Find out more...</h1>
20       If you just want to learn more about juplo you should better
21       <a href="../about.html" th:href="@{/about.html}" title="Learn more about juplo now">visit our about-pages</a>.
22     </aside>
23     <hr />
24     <h1>Work-in-progress-hint</h1>
25     <hr />
26     <article class="main" layout:fragment="wip(title)">
27       <header><h1 th:text="${title}">PAGE-TITLE</h1></header>
28       <div class="wip" th:fragment="wip">
29         <img class="w" src="/img/comming-soon.png" alt="Comming soon..."/>
30         <p th:include="templates/layout :: maincontent" th:remove="tag">
31           PAGE-CONTENT
32         </p>
33       </div>
34     </article>
35     <hr />
36     <h1>Marginalspalte</h1>
37     <hr />
38     <div th:fragment="marginalcontent" th:remove="tag">
39       <aside class="m">
40         <h1>Other nasty but marginal stuff</h1>
41         <p>
42           Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
43           eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
44           ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
45           aliquip ex ea commodo consequat. Duis aute irure dolor in
46           reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
47           pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
48           culpa qui officia deserunt mollit anim id est laborum.
49         </p>
50       </aside>
51       <aside class="m">
52         <h1>More nasty stuff</h1>
53         <p>
54           This one is really short!
55         </p>
56       </aside>
57     </div>
58     <hr />
59   </body>
60 </html>