This commit is contained in:
2025-12-26 22:35:18 +08:00
commit 9cf62f793b
4263 changed files with 728989 additions and 0 deletions

13
internal/tmpl/new.go Normal file
View 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)
}