Versions in this module Expand all Collapse all v1 v1.0.1 Aug 31, 2023 v1.0.0 Aug 31, 2023 Changes in this version + const BlocksPrefix + const DefaultLanguage + const DefaultLayout + const DefaultRobotsFollow + const DefaultRobotsIndex + const Extension + const LayoutsPrefix + const PagesPrefix + const PartialsPrefix + type Block struct + func NewBlock(set *pongo2.TemplateSet, name string, content []byte, minify bool) (b *Block, err error) + func (b *Block) Render(writer io.Writer, variables pongo2.Context) error + type Blocks map[string]*Block + type Config struct + Cache bool + Debug bool + Directory string + Minify bool + Variables pongo2.Context + type Html struct + Blocks Blocks + Layouts Layouts + Pages Pages + Partials Partials + func NewRender(config *Config) *Html + func (h *Html) Load() error + func (h *Html) Render(writer io.Writer, template string, variables any, l ...string) error + type Layout struct + Variables pongo2.Context + func NewLayout(set *pongo2.TemplateSet, name string, content []byte, minify bool) (l *Layout, err error) + func (l *Layout) Render(writer io.Writer, variables pongo2.Context) error + type Layouts map[string]*Layout + type Page struct + Author string + CreatedAt time.Time + Description string + Draft bool + Keywords []string + Language string + Layout string + Path string + RobotsFollow bool + RobotsIndex bool + SitemapChangeFrequency string + SitemapPriority float64 + Static bool + Title string + UpdatedAt time.Time + Variables pongo2.Context + func NewPage(set *pongo2.TemplateSet, name string, content []byte, minify bool) (p *Page, err error) + func (p *Page) Render(writer io.Writer, variables pongo2.Context) error + type Pages map[string]*Page + type Partial struct + func NewPartial(set *pongo2.TemplateSet, name string, content []byte, minify bool) (p *Partial, err error) + func (p *Partial) Render(writer io.Writer, variables pongo2.Context) error + type Partials map[string]*Partial