Skip to content

Template engine for Gofiber with the standard `html/template`.

License

Notifications You must be signed in to change notification settings

iredmail/gofiber-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gofiber-html

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.

Notes

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.