htmgo/starter-template/partials/index.go
2024-09-13 21:52:41 -05:00

14 lines
340 B
Go

package partials
import (
"github.com/gofiber/fiber/v2"
"github.com/maddalax/htmgo/framework/h"
)
func SamplePartial(ctx *fiber.Ctx) *h.Partial {
return h.NewPartial(h.Div(h.P(h.Text("This is a sample partials."))))
}
func NewPartial(ctx *fiber.Ctx) *h.Partial {
return h.NewPartial(h.Div(h.P(h.Text("This is a new pardtiasl."))))
}