Delete not-working code, templates related
Templates are still WIP
This commit is contained in:
parent
0a392ac639
commit
285c40ccfc
13
main.go
13
main.go
@ -2,22 +2,9 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/labstack/echo/v4"
|
|
||||||
"github.com/oscarmlage/wikingo/server"
|
"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() {
|
func main() {
|
||||||
fmt.Println("Starting wikingo...")
|
fmt.Println("Starting wikingo...")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user