Thanks to visit codestin.com
Credit goes to github.com

Skip to content

iredmail/gofiber-html

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •