Documentation ¶
Index ¶
- Variables
- type HandlebarTemplates
- type HandlebarsEngine
- func (h *HandlebarsEngine) GetStringTemplate(inline string) (*raymond.Template, error)
- func (h *HandlebarsEngine) ParseTemplate(name string, content io.Reader) (err error)
- func (h *HandlebarsEngine) Render(ctx context.Context, cfg template.Config) error
- func (h *HandlebarsEngine) RenderParsed(ctx context.Context, id string, cfg template.Config) error
- func (h *HandlebarsEngine) RenderTpl(ctx context.Context, inline string, cfg template.Config) error
- func (h *HandlebarsEngine) SetFuncs(funcs template.FuncMap) (err error)
- type PongoConfig
- func (cfg PongoConfig) BuildParser() (PongoParser, error)
- func (cfg PongoConfig) FromPaths(paths template.Paths) (PongoEngine, error)
- func (cfg PongoConfig) Loader() (pongo.TemplateLoader, error)
- func (cfg PongoConfig) Set() (*pongo.TemplateSet, error)
- func (cfg PongoConfig) SetWithLoader(loaders ...pongo.TemplateLoader) *pongo.TemplateSet
- type PongoEngine
- type PongoParser
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFuncsDisallowed = fmt.Errorf("error: engine does not implement setting FuncMap")
Functions ¶
This section is empty.
Types ¶
type HandlebarTemplates ¶
type HandlebarsEngine ¶
type HandlebarsEngine struct {
// contains filtered or unexported fields
}
func (*HandlebarsEngine) GetStringTemplate ¶
func (h *HandlebarsEngine) GetStringTemplate(inline string) (*raymond.Template, error)
func (*HandlebarsEngine) ParseTemplate ¶
func (h *HandlebarsEngine) ParseTemplate(name string, content io.Reader) (err error)
func (*HandlebarsEngine) RenderParsed ¶
type PongoConfig ¶
func (PongoConfig) BuildParser ¶
func (cfg PongoConfig) BuildParser() (PongoParser, error)
func (PongoConfig) FromPaths ¶
func (cfg PongoConfig) FromPaths(paths template.Paths) (PongoEngine, error)
func (PongoConfig) Loader ¶
func (cfg PongoConfig) Loader() (pongo.TemplateLoader, error)
func (PongoConfig) Set ¶
func (cfg PongoConfig) Set() (*pongo.TemplateSet, error)
func (PongoConfig) SetWithLoader ¶
func (cfg PongoConfig) SetWithLoader(loaders ...pongo.TemplateLoader) *pongo.TemplateSet
type PongoEngine ¶
type PongoEngine struct {
// contains filtered or unexported fields
}
func EmptyPongoEngine ¶
func EmptyPongoEngine() PongoEngine
func (PongoEngine) GetTemplate ¶
func (pg PongoEngine) GetTemplate(template string) (*pongo.Template, error)
func (PongoEngine) ParseTemplate ¶
func (pg PongoEngine) ParseTemplate(name string, content io.Reader) (err error)
type PongoParser ¶
type PongoParser struct {
// contains filtered or unexported fields
}
func (PongoParser) ParseString ¶
func (p PongoParser) ParseString(name, tpl string) (template.Template, error)
func (PongoParser) ParseTemplate ¶
Click to show internal directories.
Click to hide internal directories.