template

package
v0.0.0-...-35b42f4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	// Render renders all templates in dir with values v and returns a map of
	// template-file-path => rendered-template-content. Should return an error
	// if rendering of any of the templates fails.
	Render(dir string, v map[string]interface{}) (map[string]string, error)
}

Renderer defines a template renderer

func NewRenderer

func NewRenderer() Renderer

NewRenderer creates a new template renderer.

Jump to

Keyboard shortcuts

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