Versions in this module Expand all Collapse all v0 v0.1.3 Jul 3, 2026 v0.1.2 Jul 2, 2026 v0.1.1 Jul 1, 2026 v0.1.0 Jun 30, 2026 Changes in this version + const DefaultPattern + func Provider() runaprovider.Provider + type Context interface + Context func() context.Context + type File struct + ModTime time.Time + Name string + Path string + Size int64 + Source Source + func Files(source Source) ([]File, error) + type HTMLRenderer struct + func (renderer *HTMLRenderer) Func(name string, fn any) *HTMLRenderer + func (renderer *HTMLRenderer) Funcs(funcs template.FuncMap) *HTMLRenderer + func (renderer *HTMLRenderer) Load(ctx context.Context, set *Set) error + func (renderer *HTMLRenderer) Render(ctx Context, writer io.Writer, name string, data any) error + func (renderer *HTMLRenderer) ViewSet() Set + type Info struct + Default bool + Name string + type Registry struct + func Default() *Registry + func New() *Registry + func (registry *Registry) ContextFunc(name string, build func(context.Context) any) *Registry + func (registry *Registry) Func(name string, fn any) *Registry + func (registry *Registry) Funcs(funcs map[string]any) *Registry + func (registry *Registry) Info() []Info + func (registry *Registry) Register(ctx context.Context, name string, renderer Renderer) error + func (registry *Registry) Render(ctx Context, writer io.Writer, domain string, name string, data any) error + func (registry *Registry) RenderString(ctx Context, domain string, name string, data any) (string, error) + type Renderer interface + Load func(ctx context.Context, set *Set) error + Render func(ctx Context, writer io.Writer, name string, data any) error + func HTML(sources ...Source) Renderer + type RendererFunc func(ctx Context, writer io.Writer, name string, data any) error + func (RendererFunc) Load(context.Context, *Set) error + func (fn RendererFunc) Render(ctx Context, writer io.Writer, name string, data any) error + type Set struct + ContextFuncs map[string]func(context.Context) any + Funcs map[string]any + Name string + Sources []Source + type Source struct + FS fs.FS + Patterns []string + Root string + func Dir(root string, patterns ...string) Source + func Embed(source fs.FS, root string, patterns ...string) Source + func (source Source) Dev(dev Source) Source + func (source Source) Reload(value bool) Source + func (source Source) ReloadEnabled() bool + func (source Source) UseDev() Source