deving
This commit is contained in:
13
internal/tmpl/new.go
Normal file
13
internal/tmpl/new.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package tmpl
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func New(app *gin.Engine) {
|
||||
app.Static("/assets", "./res/assets")
|
||||
html := template.Must(template.ParseFiles("file1", "file2"))
|
||||
app.SetHTMLTemplate(html)
|
||||
}
|
||||
Reference in New Issue
Block a user