mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
编写了模板注册部分
This commit is contained in:
7
main.go
7
main.go
@@ -3,9 +3,11 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/labstack/echo/v4"
|
||||
"html/template"
|
||||
"zsxyww.com/scheduler/config"
|
||||
"zsxyww.com/scheduler/database"
|
||||
"zsxyww.com/scheduler/route"
|
||||
"zsxyww.com/scheduler/tl"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -23,4 +25,9 @@ func main() {
|
||||
func register(app *echo.Echo) {
|
||||
route.Route(app)
|
||||
route.Middleware(app)
|
||||
renderer := tl.tlw{
|
||||
Tl: template.Must(template.ParseGlob("templates/*.html")),
|
||||
}
|
||||
app.Renderer = renderer
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user