-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtemplate.hbs
90 lines (83 loc) · 2.82 KB
/
template.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{{page.title}}</title>
</head>
<body>
<div class="gutter">
<div id="nav">
<h1><a href="{{> root}}/{{href}}">Styleguide</a></h1>
{{#each pages}}
{{#if isDirectory}}
<h2 class="heading">{{name}}</h2>
<ul class="group">
{{#each pages}}
<li>
{{#if isDirectory}}
<h3 class="heading">{{name}}</h3>
<ul class="group">
{{#each pages}}
<li>
{{#if isDirectory}}
<h4 class="heading">{{name}}</h4>
<ul class="group">
{{#each pages}}
<li>
<a href="{{> root}}/{{href}}">{{title}}</a>
</li>
{{/each}}
</ul>
{{/if}}
{{#if isFile}}
<a href="{{> root}}/{{href}}">{{title}}</a>
{{/if}}
</li>
{{/each}}
</ul>
{{/if}}
{{#if isFile}}
<a href="{{> root}}/{{href}}">{{title}}</a>
{{/if}}
</li>
{{/each}}
</ul>
{{/if}}
{{#if isFile}}
<a href="{{> root}}/{{href}}">{{title}}</a>
{{/if}}
{{/each}}
</div>
<div id="content">
{{#each page.sections}}
<div class="section">
{{#if comment}}
<div class="comment">{{{comment}}}</div>
{{/if}}
{{#if result}}
<div class="result">
<script class="result-placeholder" type="text/html">{{{result}}}</script>
</div>
{{/if}}
{{#if markup}}
<div class="markup">{{{markup}}}</div>
{{/if}}
{{#if styles}}
<div class="styles">{{{styles}}}</div>
{{/if}}
</div>
{{/each}}
</div>
</div>
<script class="result-template" type="text/html">
<!DOCTYPE html>
<html>
<head>{{> assets}}</head>
<body onload="[[onload]]">[[body]]</body>
</html>
</script>
{{> theme}}
{{> highlight}}
{{> scripts}}
</body>
</html>