Documentation
¶
Overview ¶
Base on github.com/robvdl/pongo2gin
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pongo2Render ¶
type Pongo2Render struct { Options *RenderOptions Template *pongo2.Template Context pongo2.Context }
Pongo2Render is a custom Gin template renderer using Pongo2.
func Default ¶
func Default() Pongo2Render
Default creates a Pongo2Render instance with default options.
func New ¶
func New(options RenderOptions) Pongo2Render
New creates a new Pongo2Render instance with custom Options.
type RenderOptions ¶
type RenderOptions struct { TmplLoader pongo2.TemplateLoader TemplateDir string ContentType string Debug bool }
RenderOptions is used to configure the renderer.
Click to show internal directories.
Click to hide internal directories.