mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-29 04:55:04 +08:00
17 lines
276 B
Go
17 lines
276 B
Go
package tl
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"html/template"
|
|
"io"
|
|
)
|
|
|
|
// template wrapper
|
|
type Tlw struct {
|
|
Tl *template.Template
|
|
}
|
|
|
|
func (t Tlw) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
|
|
return t.Tl.ExecuteTemplate(w, name, data)
|
|
}
|