multitemplate

package
Version: v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Base on github.com/gin-gonic/contrib/renders/multitemplate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Render

type Render map[string]*template.Template

*

*

func New

func New() Render

func (Render) Add

func (r Render) Add(name string, tmpl *template.Template)

func (Render) AddFromFiles

func (r Render) AddFromFiles(name string, files ...string) *template.Template

func (Render) AddFromGlob

func (r Render) AddFromGlob(name, glob string) *template.Template

func (*Render) AddFromString

func (r *Render) AddFromString(name, templateString string) *template.Template

func (Render) Render

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto