14 lines
230 B
Go
14 lines
230 B
Go
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)
|
|
}
|