diff options
Diffstat (limited to 'util.go')
| -rw-r--r-- | util.go | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +package main + +import ( + "html/template" + + "github.com/gin-gonic/gin" +) + +func setupTemplates(router *gin.Engine) { + tmpl := template.Must(template.New("").ParseFS( + virtualFilesystem, + "templates/partials/*.tmpl", + "templates/pages/*.tmpl"), + ) + router.SetHTMLTemplate(tmpl) +} |