Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedParser ¶
type CachedParser struct {
// contains filtered or unexported fields
}
func NewCachedParser ¶
func NewCachedParser(parser Parser) CachedParser
func (CachedParser) ParseTemplate ¶
type StdHtmlTemplate ¶
type StdHtmlTemplate struct {
// contains filtered or unexported fields
}
func NewStdHtmlTemplate ¶
func NewStdHtmlTemplate(name string) StdHtmlTemplate
func (StdHtmlTemplate) Lookup ¶
func (s StdHtmlTemplate) Lookup(name string) StdTemplate
func (StdHtmlTemplate) Name ¶
func (s StdHtmlTemplate) Name() string
func (StdHtmlTemplate) New ¶
func (s StdHtmlTemplate) New(name string) StdTemplate
func (StdHtmlTemplate) Parse ¶
func (s StdHtmlTemplate) Parse(text string) (StdTemplate, error)
type StdParser ¶
type StdParser struct {
// contains filtered or unexported fields
}
func NewStdParser ¶
func StdRootParser ¶
StdRootParser call NewStdParser with name "root"
type StdTemplate ¶
type StdTemplate interface { New(name string) StdTemplate Name() string Parse(text string) (StdTemplate, error) Lookup(name string) StdTemplate Execute(w io.Writer, data any) error }
type StdTextTemplate ¶
type StdTextTemplate struct {
// contains filtered or unexported fields
}
func NewStdTextTemplate ¶
func NewStdTextTemplate(name string) StdTextTemplate
func (StdTextTemplate) Lookup ¶
func (s StdTextTemplate) Lookup(name string) StdTemplate
func (StdTextTemplate) Name ¶
func (s StdTextTemplate) Name() string
func (StdTextTemplate) New ¶
func (s StdTextTemplate) New(name string) StdTemplate
func (StdTextTemplate) Parse ¶
func (s StdTextTemplate) Parse(text string) (StdTemplate, error)
type StdType ¶
type StdType int
ENUM(
Text Html
)
func ParseStdType ¶
ParseStdType attempts to convert a string to a StdType.
func (StdType) MarshalText ¶
MarshalText implements the text marshaller method.
func (*StdType) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type StringParser ¶
Click to show internal directories.
Click to hide internal directories.