View definition

func RegisterFilter

Defined in github.com/flosch/pongo2/filters.go

Description

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: http://golang.org/doc/effective_go.html#init

See http://www.florian-schlachter.de/post/pongo2/ for more about writing filters and tags.

RegisterFilter is referenced in 14 repositories

github.com/flosch/pongo2 github.com/flosch/pongo2-addons github.com/mattn/jedie

...