* allow partials throughout the project, not jsut partials file * route directly to partial * generate correctly even if there is no partials * run cli tests * tidy * only run tests on master if push * add codecov
11 lines
189 B
Go
11 lines
189 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"),
|
|
),
|
|
)
|
|
}
|