Back to godoc.org
github.com/go-box/template

Package template

v0.0.1
Latest Go to latest

The highest tagged major version is .

Published: Jul 16, 2019 | License: MIT | Module: github.com/go-box/template

Index

type Renderer

type Renderer struct {
	BaseDir string
	TplSet  *pongo2.TemplateSet
}

Renderer manages a pongo2 TemplateSet

func NewRenderer

func NewRenderer(baseDir string) (*Renderer, error)

NewRenderer creates a new instance of Renderer

func (*Renderer) Render

func (r *Renderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render implements echo.Render interface

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier