18 lines
305 B
Go
18 lines
305 B
Go
package partials
|
|
|
|
import "github.com/maddalax/htmgo/framework/h"
|
|
|
|
func CountersPartial(ctx *h.RequestContext) *h.Partial {
|
|
return h.NewPartial(
|
|
h.Div(
|
|
h.Text("my counter"),
|
|
),
|
|
)
|
|
}
|
|
|
|
func SwapFormError(ctx *h.RequestContext, error string) *h.Partial {
|
|
return h.SwapPartial(
|
|
ctx,
|
|
h.Div(),
|
|
)
|
|
}
|