htmltemplate

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 7 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 struct {
	// contains filtered or unexported fields
}

Renderer renders html templates

func NewRenderer

func NewRenderer(fs filesystem.FS, funcMap template.FuncMap, cacheEnabled bool) *Renderer

NewRenderer created a new renderer

func (*Renderer) RenderTemplate

func (renderer *Renderer) RenderTemplate(data interface{}, filenames ...string) (string, error)

RenderTemplate renders an html template with the given data

Jump to

Keyboard shortcuts

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