generated from ElnuDev/go-project
Better template loading, word page
See https://stackoverflow.com/a/11468132
This commit is contained in:
parent
f558d7f0c1
commit
e70916c6c1
11 changed files with 236 additions and 87 deletions
3
dict/templates/partials/definition.html
Normal file
3
dict/templates/partials/definition.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{- define "definition" -}}
|
||||
{{ if .PartOfSpeech }}<small><chip>{{ .PartOfSpeech }}</chip></small><br>{{ end }}{{ .Definition -}}
|
||||
{{ end }}
|
Reference in a new issue