generated from ElnuDev/go-project
Add hot tempalte reloading, WIP pos
This commit is contained in:
parent
e00df6aac6
commit
442f727d8a
4 changed files with 73 additions and 15 deletions
|
@ -9,11 +9,11 @@
|
|||
{{- end -}}
|
||||
</h3>
|
||||
{{ if le (len .Definitions) 2 -}}
|
||||
<p>{{- index .Definitions 0 -}}</p>
|
||||
<p>{{- template "definition" (index .Definitions 0) -}}</p>
|
||||
{{- else -}}
|
||||
<ol>
|
||||
{{- range .Definitions }}
|
||||
<li>{{- . -}}</li>
|
||||
<li>{{- template "definition" . -}}</li>
|
||||
{{- end }}
|
||||
</ol>
|
||||
{{- end }}
|
||||
|
|
Reference in a new issue