diff options
| author | Fuwn <[email protected]> | 2022-01-20 16:03:08 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-01-20 16:03:08 -0800 |
| commit | 8070becd846a5b59b0ee32015d02eb00a2652f4e (patch) | |
| tree | e4bb4d40792d75bcb7649ca56b36239753489ad0 /util.go | |
| download | bowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.tar.xz bowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.zip | |
bowl: :star:
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) +} |