Files
scheduler/templates/renderer.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)
}