~emersion/gyosu

ref: 872488ff784e0ef4d71258400c28624b4a7e8d1d gyosu/template/unit.html -rw-r--r-- 837 bytes
872488ffSimon Ser Remove unnecessary shadowed variables a month ago
                                                                                
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
{{ template "head.html" . }}

<main>
	<h2>{{ .Title }}</h2>

	<a href="{{ .IndexHref }}">Back to index</a>

	{{ range .Decls }}
	<section class="{{ .Kind }}">
			<h3 id="{{ .Kind }}-{{ .Name }}">
				{{ .Title }}
				<a href="#{{ .Kind }}-{{ .Name }}"></a>
			</h3>
			<pre class="prototype">
				{{- range .Prototype -}}
					{{- $tok := . -}}
					{{- if eq .Type.String "symbol" -}}
						{{- with symhref .Kind .Value -}}
							<a href="{{ . }}" class="token-symbol">{{ $tok.Value }}</a>
						{{- else -}}
							<span class="token-symbol">{{ $tok.Value }}</span>
						{{- end -}}
					{{- else -}}
						<span class="token-{{ $tok.Type }}">{{ $tok.Value }}</span>
					{{- end -}}
				{{- end -}}
			</pre>
			{{ range .Description }}
				<p>{{ . }}</p>
			{{ end }}
		</section>
	{{ end }}
</main>

{{ template "foot.html" }}