Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultRawURL = "amatl://document.html"
Variables ¶
View Source
var DefaultResolver = resolver.DefaultResolver.Extend( func() (scheme string, resolver resolver.Resolver) { return amatl.Scheme, amatl.NewResolver() }, )
Functions ¶
func DefaultFuncs ¶
Types ¶
type LayoutOptions ¶
type LayoutOptions struct { RawURL string Vars map[string]any Resolver resolver.Resolver Funcs template.FuncMap }
func NewLayoutOptions ¶
func NewLayoutOptions(funcs ...OptionFunc) *LayoutOptions
type OptionFunc ¶
type OptionFunc func(opts *LayoutOptions)
func WithResolver ¶
func WithResolver(resolver resolver.Resolver) OptionFunc
func WithURL ¶
func WithURL(rawURL string) OptionFunc
func WithVar ¶
func WithVar(key string, value any) OptionFunc
func WithVars ¶
func WithVars(vars map[string]any) OptionFunc
Click to show internal directories.
Click to hide internal directories.