htmgo/starter-template/partials/index.go

15 lines
340 B
Go
Raw Normal View History

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."))))
}