skeleton of embedr service, based on bskyweb

This commit is contained in:
bryan newbold
2024-04-11 19:38:37 -07:00
parent e3e8f10538
commit 11106c1ecb
13 changed files with 440 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package main
import (
"html/template"
"io"
"github.com/labstack/echo/v4"
)
type Template struct {
templates *template.Template
}
func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
return t.templates.ExecuteTemplate(w, name, data)
}