Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeforeRender ¶
type BeforeRender func(w io.Writer, name string, vars jet.VarMap, data interface{}, ctx *clevergo.Context) error
BeforeRender is a listener that listen the event which trigger before rendering.
type Renderer ¶
type Renderer struct { *jet.Set // contains filtered or unexported fields }
Renderer implementation of clevergo.Renderer for Jet template engine.
func (*Renderer) SetBeforeRender ¶
func (r *Renderer) SetBeforeRender(fn BeforeRender)
SetBeforeRender sets before render listener.
Click to show internal directories.
Click to hide internal directories.