View definition

(*TemplateSet).FromCache

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

Description

FromCache is a convenient method to cache templates. It is thread-safe and will only compile the template associated with a filename once. If TemplateSet.Debug is true (for example during development phase), FromCache() will not cache the template and instead recompile it on any call (to make changes to a template live instantaneously).

FromCache is referenced in 5 repositories

github.com/flosch/pongo2 github.com/plimble/copter github.com/gophergala/go_ne

...