lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template interface {
	SourcePath() string
	DestinationPath() string
	Context() *TemplateContext
	Resolve() error
	Render() error
}

Template contains the metadata for rendering a template from a source into a destination path

func NewTemplate

func NewTemplate(templatePath, destinationPath string) Template

NewTemplate creates a new template

type TemplateContext

type TemplateContext struct {
	Params map[string]interface{}
}

TemplateContext is a map containing the resolved template parameters and rendering context

Jump to

Keyboard shortcuts

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