templates

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlebarTemplate

type HandlebarTemplate struct {
	// Raw - is the raw string from a file
	Raw         string
	Destination string
}

func (HandlebarTemplate) Render

func (h HandlebarTemplate) Render(vars map[string]string) (string, error)

func (HandlebarTemplate) Save

func (h HandlebarTemplate) Save(vars map[string]string) error

type Template

type Template interface {
	Render() error
	Save() error
}

Jump to

Keyboard shortcuts

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