template

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: AGPL-3.0 Imports: 13 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