Repository navigation
Expand file tree
/
Copy pathsection.hbs
More file actions
executable file
·151 lines (140 loc) · 3.89 KB
/
Copy pathsection.hbs
File metadata and controls
executable file
·151 lines (140 loc) · 3.89 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<section class='py2 clearfix'>
{{#if context.github}}
<a class='github gray' href='{{context.github}}'>{{context.path}}</a>
{{/if}}
<h2 id='{{permalink}}' class='function'>
{{name}}<span class='gray section-params'>{{format_params}}</span>
</h2>
{{#if augments}}
<p>
Extends
{{#augments}}
{{autolink name}}
{{/augments}}
</p>
{{/if}}
{{#if version }}<div>Version: {{version}}</div>{{/if}}
{{#if license }}<div>License: {{license}}</div>{{/if}}
{{#if author }}<div>Author: {{author}}</div>{{/if}}
{{#if copyright }}<div>Copyright: {{copyright}}</div>{{/if}}
{{#if since }}<div>Since: {{since}}</div>{{/if}}
{{md description}}
{{#if params}}
<h4>Parameters</h4>
<div class='table-wrapper'>
<table class='params'>
<tr>
<th>param</th>
<th>type = default</th>
<th>description</th>
</tr>
{{#params}}
<tr class='param'>
<td>{{name}}</td>
<td>{{format_type type}} {{#default}} (<code>{{.}}</code>){{/default}}</td>
<td class='param-description'>{{md description}}</td>
</tr>
{{#if properties}}
{{#properties}}
<tr class='param'>
<td>{{name}}</td>
<td>{{format_type type}} {{#default}} (<code>{{.}}</code>){{/default}}</td>
<td class='param-description'>{{md description}}</td>
</tr>
{{/properties}}
{{/if}}
{{/params}}
</table>
</div>
{{/if}}
{{#if properties}}
<h4>Properties</h4>
<div class='table-wrapper'>
<table class='params'>
<tr>
<th>prop</th>
<th>type = default</th>
<th>description</th>
</tr>
{{#properties}}
<tr class='param'>
<td>{{name}}</td>
<td>{{format_type type}} {{#default}} (<code>{{.}}</code>){{/default}}</td>
<td class='param-description'>{{md description}}</td>
</tr>
{{#if properties}}
{{#properties}}
<tr class='param'>
<td>{{name}}</td>
<td>{{format_type type}} {{#default}} (<code>{{.}}</code>){{/default}}</td>
<td class='param-description'>{{md description}}</td>
</tr>
{{/properties}}
{{/if}}
{{/properties}}
</table>
</div>
{{/if}}
{{#if returns}}
{{#returns}}
<h4>Returns</h4>
<code>{{format_type type}}</code>
{{#if description}}:{{/if}}
<div class='force-inline'>
{{md description}}
</div>
{{/returns}}
{{/if}}
{{#if throws}}
<h4>Throws</h4>
<ul>
{{#throws}}
<li>{{format_type type}}: <div class='force-inline'>{{md description}}</div></li>
{{/throws}}
</ul>
{{/if}}
{{#if examples}}
<h4>Example</h4>
{{#each examples ~}}
{{#if caption}}<p>{{md caption}}</p>{{/if}}
<pre class='overflow-auto'>{{highlight description}}</pre>
{{/each}}
{{/if}}
{{#if members.static}}
<h4>Static members</h4>
{{#each members.static}}
<div class='collapsible' id='{{permalink}}'>
<a href='#{{permalink}}'>
<code>
.{{name}}<span class='gray'>{{format_params}}</span>
</code>
</a>
<div class='collapser border px2 m2'>
{{> section}}
</div>
</div>
{{/each}}
{{/if}}
{{#if members.instance}}
<h4>Instance members</h4>
{{#each members.instance}}
<div class='collapsible' id='{{permalink}}'>
<a href='#{{permalink}}'>
<code>
#{{name}}<span class='gray'>{{format_params}}</span>
</code>
</a>
<div class='collapser border px2'>
{{> section}}
</div>
</div>
{{/each}}
{{/if}}
{{#if events}}
{{#each events}}
<div>
{{> section}}
</div>
{{/each}}
{{/if}}
</section>