partials handling
This commit is contained in:
@@ -1,39 +1,12 @@
|
||||
<html>
|
||||
<meta>
|
||||
<title>{{ Meta.Title }}</title>
|
||||
<meta name="description" content="{{ Meta.Description }}" />
|
||||
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
||||
<style>
|
||||
a {
|
||||
color: black;
|
||||
}
|
||||
body {
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
</meta>
|
||||
{{> meta.html }}
|
||||
<body style="margin: 0; padding: 2;">
|
||||
<header style="background-color: lightgrey; padding: 20px;">
|
||||
<div><img src="../assets/img/logo.png" style="max-width: 80%; margin-bottom: 20px;"></div>
|
||||
<div><b>main Level 1</b></div>
|
||||
<ul>
|
||||
{{#each NavMap.de.SubMap.main.SubSlice }}
|
||||
<li><a href="{{ GoTo }}">{{ Navname }}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</header>
|
||||
{{> header.html }}
|
||||
|
||||
<div style="padding: 20px;">
|
||||
{{{ Body }}}
|
||||
</div>
|
||||
|
||||
<footer style="background-color: lightgrey; padding: 20px;">
|
||||
<div><b>service Level 1</b></div>
|
||||
<ul>
|
||||
{{#each NavMap.de.SubMap.service.SubSlice }}
|
||||
<li><a href="{{ GoTo }}">{{ Navname }}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</footer>
|
||||
{{> footer.html }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,26 +1,7 @@
|
||||
<html>
|
||||
<meta>
|
||||
<title>{{ Meta.Title }}</title>
|
||||
<meta name="description" content="{{ Meta.Description }}" />
|
||||
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
||||
<style>
|
||||
a {
|
||||
color: black;
|
||||
}
|
||||
body {
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
</meta>
|
||||
{{> meta.html }}
|
||||
<body style="margin: 0; padding: 2;">
|
||||
<header style="background-color: lightgrey; padding: 20px;">
|
||||
<div><b>main Level 1</b></div>
|
||||
<ul>
|
||||
{{#each NavMap.de.SubMap.main.SubSlice }}
|
||||
<li><a href="{{ GoTo }}">{{ Navname }}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</header>
|
||||
{{> header.html }}
|
||||
|
||||
<div style="padding: 20px;">
|
||||
{{{ Body }}}
|
||||
@@ -30,13 +11,6 @@
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<footer style="background-color: lightgrey; padding: 20px;">
|
||||
<div><b>service Level 1</b></div>
|
||||
<ul>
|
||||
{{#each NavMap.de.SubMap.service.SubSlice }}
|
||||
<li><a href="{{ GoTo }}">{{ Navname }}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</footer>
|
||||
{{> footer.html }}
|
||||
</body>
|
||||
</html>
|
||||
8
example/templates/partials/footer.html
Normal file
8
example/templates/partials/footer.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<footer style="background-color: lightgrey; padding: 20px;">
|
||||
<div><b>service Level 1</b></div>
|
||||
<ul>
|
||||
{{#each NavMap.de.SubMap.service.SubSlice }}
|
||||
<li><a href="{{ GoTo }}">{{ Navname }}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</footer>
|
||||
9
example/templates/partials/header.html
Normal file
9
example/templates/partials/header.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<header style="background-color: lightgrey; padding: 20px;">
|
||||
<div><img src="../assets/img/logo.png" style="max-width: 80%; margin-bottom: 20px;"></div>
|
||||
<div><b>main Level 1</b></div>
|
||||
<ul>
|
||||
{{#each NavMap.de.SubMap.main.SubSlice }}
|
||||
<li><a href="{{ GoTo }}">{{ Navname }}</a></li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</header>
|
||||
13
example/templates/partials/meta.html
Normal file
13
example/templates/partials/meta.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<meta>
|
||||
<title>{{ Meta.Title }}</title>
|
||||
<meta name="description" content="{{ Meta.Description }}" />
|
||||
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
||||
<style>
|
||||
a {
|
||||
color: black;
|
||||
}
|
||||
body {
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
</meta>
|
||||
Reference in New Issue
Block a user