Versions in this module Expand all Collapse all v0 v0.3.3 Dec 13, 2023 Changes in this version + const RenderMethodFuncThenTemplate + func Args(args ...any) map[string]any type ComponentDef + SlotName string + TemplateName string v0.3.2 May 17, 2023 v0.3.1 Apr 7, 2023 v0.3.0 Apr 7, 2023 Changes in this version + func WrapTemplate(code string, prefix, suffix string) string type ComponentDef + HasSlots bool + ImplName string + func ScanTemplate(code string) *ComponentDef v0.2.0 Apr 6, 2023 Changes in this version + const RenderMethodFunc + const RenderMethodNone + const RenderMethodTemplate + func Rewrite(templ string, baseName string, comps map[string]*ComponentDef) (string, error) + type Arg struct + Name string + Value string + type Component struct + Args []Arg + Body string + Name string + type ComponentDef struct + FuncName string + RenderMethod RenderMethod + type ParseErr struct + Code string + Line int + Msg string + Pos int + func (e *ParseErr) Error() string + type RenderMethod int