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:
parent
4d0d4bf8fc
commit
ff3351b15e
1 changed files with 7 additions and 1 deletions
|
@ -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 }}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue