14 lines
340 B
Go
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."))))
|
|
}
|