htmgo/examples/starter-template/partials/index.go

19 lines
429 B
Go
Raw Normal View History

package partials
import (
2024-09-17 17:13:22 +00:00
"github.com/labstack/echo/v4"
"github.com/maddalax/htmgo/framework/h"
)
2024-09-17 17:13:22 +00:00
func SamplePartial(ctx echo.Context) *h.Partial {
return h.NewPartial(h.Div(h.P(h.Text(" asdasasds"))))
}
2024-09-17 17:13:22 +00:00
func NewPartial(ctx echo.Context) *h.Partial {
return h.NewPartial(h.Div(h.P(h.Text("This sadsl."))))
}
2024-09-17 17:13:22 +00:00
func NewPartial2(ctx echo.Context) *h.Partial {
return h.NewPartial(h.Div(h.P(h.Text("This sasdsadasdwl."))))
}