Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FilterExists returns true if the given filter is already registered. FilterExists = pongo2.FilterExists // RegisterFilter registers a new filter. If there's already a filter // with the same name, RegisterFilter will panic. You usually want // to call this function in the filter's init() function. RegisterFilter = pongo2.RegisterFilter // RegisterTag registers a new tag. You usually want to call this function // in the tag's init() function. RegisterTag = pongo2.RegisterTag // ReplaceFilter replaces an already registered filter with a new // implementation. Use this function with caution since it allows you // to change existing filter behaviour. ReplaceFilter = pongo2.ReplaceFilter // ReplaceTag replaces an already registered tag with a new implementation. // Use this function with caution since it allows you to change existing // tag behaviour. ReplaceTag = pongo2.ReplaceTag // SetAutoescape sets whether or not to escape automatically. SetAutoescape = pongo2.SetAutoescape )
Some functions from pongo2.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { *pongo2.TemplateSet // contains filtered or unexported fields }
Engine adapts the pongo2 engine.
func (*Engine) Execute ¶
func (e *Engine) Execute(w io.Writer, filename string, data interface{}, metadata map[string]interface{}) error
Execute renders a django template.
type FilterFunction ¶
type FilterFunction = pongo2.FilterFunction
FilterFunction is the type filter functions must fulfil.
Click to show internal directories.
Click to hide internal directories.