1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-12-21 23:12:19 +00:00

enum support

This commit is contained in:
Ash Keel 2023-02-22 11:34:03 +01:00
parent 4d0d4bf8fc
commit ff3351b15e
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -32,7 +32,13 @@
{{ end }}:
</div>
{{ end }}
<span class="kind {{ $.kind }}">{{ .kind }}</span>
{{ if (eq $.kind "enum") }}
<span class="kind {{ $.kind }}">enum</span> (
{{ with $.enumValues }}{{ delimit . " | " }}{{ end }}
)
{{ else }}
<span class="kind {{ $.kind }}">{{ .kind }}</span>
{{ end }}
{{ end }}
{{ with .keys }}
{