mirror of
https://git.sr.ht/~ashkeel/strimertul-website
synced 2024-11-21 21:22:21 +00:00
enum support
This commit is contained in:
parent
4d0d4bf8fc
commit
ff3351b15e
1 changed files with 7 additions and 1 deletions
|
@ -32,8 +32,14 @@
|
||||||
{{ end }}:
|
{{ end }}:
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if (eq $.kind "enum") }}
|
||||||
|
<span class="kind {{ $.kind }}">enum</span> (
|
||||||
|
{{ with $.enumValues }}{{ delimit . " | " }}{{ end }}
|
||||||
|
)
|
||||||
|
{{ else }}
|
||||||
<span class="kind {{ $.kind }}">{{ .kind }}</span>
|
<span class="kind {{ $.kind }}">{{ .kind }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ with .keys }}
|
{{ with .keys }}
|
||||||
{
|
{
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
|
|
Loading…
Reference in a new issue