template

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, name string, root interface{}) error

Render renders a template available in the compiled binary.

Types

type Me

type Me interface {
	GetMe() *models.User
}

Me should implement a context with a logged in user.

type Renderer

type Renderer struct{}

Renderer implements echo.Renderer

func (Renderer) Render

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

Render implement echo.Renderer.Render

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL