Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JadeRender ¶
type JadeRender struct { Template *gojade.Engine Context interface{} TemplateName string // contains filtered or unexported fields }
JadeRender is a custom Gin template renderer using gojade.
func Default ¶
func Default() *JadeRender
Default creates a JadeRender instance with default options.
func New ¶
func New(options RenderOptions) *JadeRender
New creates a new JadeRender instance with custom Options.
func (*JadeRender) Instance ¶
func (this *JadeRender) Instance(templateName string, data interface{}) render.Render
Instance should return a new JadeRender struct per request
func (JadeRender) Render ¶
func (this JadeRender) Render(w http.ResponseWriter) error
Render should render the template to the response.
type RenderOptions ¶
RenderOptions is used to configure the renderer.
Click to show internal directories.
Click to hide internal directories.