1
0
Fork 0
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:
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,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 . }}