stencil

package
v0.0.0-...-598a827 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap(funcs map[string]interface{}) (f template.FuncMap)

FuncMap augments the template functions with some standard string manipulation functions for document format conversions

func Template

func Template(opts TemplateOptions) (err kv.Error, warnings []kv.Error)

Template takes the TemplateOptions and processes the template execution, it also it used to catch and report errors the user raises within the template from validation checking etc

Types

type TemplateIOFiles

type TemplateIOFiles struct {
	In  io.Reader
	Out io.Writer
}

TemplateIOFiles is used to encapsulate some streaming interfaces for input and output documents

type TemplateOptions

type TemplateOptions struct {
	IOFiles        []TemplateIOFiles
	Delimiters     []string
	ValueFiles     []string
	OverrideValues map[string]string
}

TemplateOptions is used to pass into the Template function both streams and key values for the template engine

Jump to

Keyboard shortcuts

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