Almost working
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user