template

package
v0.0.0-...-cabd6b2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastTemplate

func FastTemplate(loader Loader, startTag, endTag string) echo.Renderer

FastTemplate returns fasttemplate renderer

func HTML

func HTML(loader Loader) echo.Renderer

HTML returns html/template renderer

func Pongo

func Pongo(loader Loader) echo.Renderer

Pongo returns pongo2 renderer

Types

type File

type File struct {
	Name    string
	Content []byte
}

type Loader

type Loader interface {
	Load() ([]File, error)
}

Loader is a template loader interface

func FSLoader

func FSLoader(path string) Loader

FSLoader returns file system template loader

func GOBinDataLoader

func GOBinDataLoader(dir string, assetDir func(name string) ([]string, error), loaderFunc func(path string) ([]byte, error)) Loader

GOBinDataLoader returns go-bindata template loader

Jump to

Keyboard shortcuts

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