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,7 +32,13 @@
|
||||||
{{ end }}:
|
{{ end }}:
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ with .keys }}
|
{{ with .keys }}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue