Documentation ¶
Overview ¶
A small library that lets you use Pongo2 with Beego
When Render is called, it will populate the render context with Beego's flash messages. You can also use {% urlfor "MyController.Action" ":key" "value" %} in your templates, and it'll work just like `urlfor` would with `html/template`. It takes one controller argument and zero or more key/value pairs to fill the URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render takes a Beego context, template name and a Context (map[string]interface{}). The template is parsed and cached, and gets executed into beegoCtx's ResponseWriter.
Templates are looked up in `templates/` instead of Beego's default `views/` so that Beego doesn't attempt to load and parse our templates with `html/template`.