-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.mustache
82 lines (61 loc) · 1.63 KB
/
module.mustache
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
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
<style type="text/css">
body { margin-left: 20%; margin-right: 20%; }
pre { margin-left: 30pt; background-color: rgb(223,223,233); }
code { background-color: rgb(223,223,233); }
table { border: 1px solid grey; padding: 10pt; }
td { padding: 7px; padding-top: 35px; margin-right: 15pt; vertical-align: top; }
h3, .type-name { font-size: 40px; font-weight: bold; margin-top: 40px; }
.field-type, .value-type { width: 180px; }
</style>
<head>
<title>{{name}}</title>
</head>
<body>
<h1>{{name}}</h1>
<p>{{{doc}}}</p>
{{#categories}}
{{#hasHeader}}
<h2 class="category">{{name}}</h2>
<p class="types-category-doc">{{{doc}}}</p>
{{/hasHeader}}
{{#hasTypes}}
<h3>Types</h3>
{{#types}}
<div class="type-name">{{name}}</div>
<div class="type-doc">{{{doc}}}</div>
{{^isObject}}
<code class="type-type">{{type}}</code>
{{/isObject}}
{{#isObject}}
<table class="field-table">
{{#fields}}
<tr class="field-row">
<td class="field-name">{{name}}</td>
<td class="field-type"><code>{{type}}</code></td>
<td class="field-doc">{{{doc}}}</td></tr>
{{/fields}}
</table>
{{/isObject}}
</table>
</tr>
{{/types}}
</types>
{{/hasTypes}}
{{#hasValues}}
<h3>Values and Functions</h3>
<table class="values-table">
{{#values}}
<tr class="value">
<td class="value-name">{{name}}</td>
<td class="value-type"><code>{{type}}</code></td>
<td class="value-doc">{{{doc}}}</td></tr>
{{/values}}
</table>
{{/hasValues}}
{{/categories}}
</body>
</html>