Beispiel für das Überschreiben der Menüstruktur mit juplo:variables
authorKai Moritz <kai@juplo.de>
Tue, 28 Feb 2017 19:54:40 +0000 (20:54 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 28 Feb 2017 19:54:40 +0000 (20:54 +0100)
dist/projects.html
dist/projects/accelerator.html [new file with mode: 0644]

index 3878ad5..b0a8cc7 100644 (file)
     <script src="js/less-1.7.0.min.js"></script>
     <!--*/-->
   </head>
-  <body>
+  <body juplo:variables='merge:{"pages":{
+    "/projects.html": {
+      "name": "Projects",
+      "childs": {
+        "#hibernate4-maven-plugin": "Hibernate 4 Maven Plugin",
+        "/projects/accelerator.html": "accelerator!",
+        "/projects/html-experimente.html": "HTML-Experimente",
+        "/projects/fix-swf/overview.html": "Fix SWF",
+        "/projects/typo.html": "Typography"
+      },
+      "crumbs": [
+        { "uri": "/projects.html", "name": "Projects" }
+      ]
+    },
+    "/projects/accelerator.html": {
+      "name": "Overview",
+      "childs": {}
+    }
+}}'>
    <h1>Projects - DUMMY</h1>
   </body>
 </html>
diff --git a/dist/projects/accelerator.html b/dist/projects/accelerator.html
new file mode 100644 (file)
index 0000000..98579f2
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html
+    xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:layout="http://www.thymeleaf.org"
+    layout:decorator="/templates/layout.html"
+    th:with="title='accelerator - Overview', uri='/projects/accelerator.html'"
+    >
+  <head>
+    <!--/*-->
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <title>Fix SWF - Overview</title>
+    <link rel="stylesheet/less" type="text/css" href="../../less/base.less"/>
+    <link rel="stylesheet/less" type="text/css" href="../../less/screen.less" media="screen"/>
+    <link rel="stylesheet/less" type="text/css" href="../../less/print.less" media="print"/>
+    <script src="../../js/less-1.7.0.min.js"></script>
+    <!--*/-->
+  </head>
+  <body juplo:variables='merge:{"pages":{
+    "/projects.html": {
+      "name": "Projects",
+      "childs": {
+        "#hibernate4-maven-plugin": "Hibernate 4 Maven Plugin",
+        "/projects/accelerator.html": "accelerator!",
+        "/projects/html-experimente.html": "HTML-Experimente",
+        "/projects/fix-swf/overview.html": "Fix SWF",
+        "/projects/typo.html": "Typography"
+      },
+      "crumbs": [
+        { "uri": "/projects.html", "name": "Projects" }
+      ]
+    },
+    "/projects/accelerator.html": {
+      "name": "Overview",
+      "childs": {
+        "/projects/accelerator.html": "Overview",
+        "/projects/accelerator/read-on.html": "Read on",
+        "/projects/accelerator/read-on-and-on.html": "Read on and on",
+        "/projects/accelerator/read-on-and-on-and-on.html": "Read on and on and on"
+      },
+      "crumbs": [
+        { "uri": "/projects.html", "name": "Projects" },
+        { "uri": "/projects/accelerator.html", "name": "accelerator" },
+        { "uri": "/projects/accelerator.html", "name": "Overview" }
+      ]
+    },
+    "/projects/accelerator/read-on.html": { "name": "Read on" },
+    "/projects/accelerator/read-on-and-on.html": { "name": "Read on and on" },
+    "/projects/accelerator/read-on-and-on-and-on.html": { "name": "Read on and on and on" }
+}}'>
+    <h1>Overview - DUMMY</h1>
+  </body>
+</html>