Learning if-then in Hugo/Go templates.

This commit is contained in:
2025-11-16 12:48:34 -07:00
parent c143eae7c5
commit 48c2aeff49

View File

@@ -0,0 +1,7 @@
{{ if eq (.Get 0) "bug" }}
{{ print "Bug" }}
{{ else if eq (.Get 0) "hyperling" }}
{{ print "Hyperling" }}
{{ else if eq (.Get 0) "hypervegan" }}
{{ print "HyperVegan" }}'
{{ end }}