Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func TemplateDir ¶
TemplateDir - Template directory. Default=templates
type Pongo2Engine ¶
type Pongo2Engine struct {
// contains filtered or unexported fields
}
A Pongo2Engine implements keeper, loader and reloader for HTML templates
func NewPongo2Engine ¶
func NewPongo2Engine(opts ...Option) (tmpl *Pongo2Engine)
func (*Pongo2Engine) Init ¶
func (e *Pongo2Engine) Init() error
func (*Pongo2Engine) IsModified ¶
func (t *Pongo2Engine) IsModified() (yep bool, err error)
IsModified lookups directory for changes to reload (or not to reload) templates if autoReloadopment pin is true.
func (*Pongo2Engine) Render ¶
func (t *Pongo2Engine) Render(w http.ResponseWriter, status int, name string, d *sync.Map) (err error)
Click to show internal directories.
Click to hide internal directories.