gofiber-html uses the Go builtin html/template as Fiber template engine. Here's the original syntax of html/template
Check the sample app in example/ directory to get start.
About the html module offered by gofiber/template
repo:
-
it can not specify web page title in template files.
If you define a template to hold page title like
{{template "title" .}}in layout file, then define page title like{{define "title"}}...{{end}}in each template file, only the one in last parsed template file will be kept and used (earlies ones are overwrote), this is not ideal for i18n. -
it doesn't expose
funcmap.