Almost working

This commit is contained in:
Eden Kirin
2024-01-21 00:17:49 +01:00
parent 960c22a8c8
commit 9d76a8dc22
6 changed files with 151 additions and 53 deletions

View File

@ -1,5 +1,15 @@
package handlers
import "github.com/gin-gonic/gin"
import (
"net/http"
func Home(c *gin.Context) {}
"templ-tests/app/templates"
"github.com/gin-gonic/gin"
)
func Home(c *gin.Context) {
content := templates.Home()
c.Data(http.StatusOK, "text/html; charset=utf-8", []byte(content))
}