Delete not-working code, templates related

Templates are still WIP
This commit is contained in:
Óscar M. Lage 2022-03-18 13:18:19 +01:00
parent 0a392ac639
commit 285c40ccfc

13
main.go
View File

@ -2,22 +2,9 @@ package main
import (
"fmt"
"github.com/labstack/echo/v4"
"github.com/oscarmlage/wikingo/server"
"html/template"
"io"
)
// Define the template registry struct
type TemplateRegistry struct {
templates *template.Template
}
// Implement e.Renderer intercace
func (t *TemplateRegistry) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
return t.templates.ExecuteTemplate(w, name, data)
}
func main() {
fmt.Println("Starting wikingo...")