renderer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 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 Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func New

func New(configuration configuration.Configuration) *Renderer

func (*Renderer) ReadFile

func (r *Renderer) ReadFile(file string) (string, error)

ReadFile provides a custom template function for in-template file opening

func (*Renderer) Render

func (r *Renderer) Render(templateName, rawTemplate string) (string, error)

func (*Renderer) RenderFile

func (r *Renderer) RenderFile(inputPath, outputPath string) error

func (*Renderer) ToYaml

func (r *Renderer) ToYaml(yamlSnippet interface{}) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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