templates

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAsset added in v1.5.4

func GetAsset(assetName string, options ...AssetOption) (string, error)

GetAsset reads an asset from "disk" into a string

Types

type AssetOption added in v1.5.4

type AssetOption func(string, string) (string, error)

AssetOption describes the method signature for manipulating loaded assets

func DecorateTemplate added in v1.5.4

func DecorateTemplate(extMgr StackTemplateDecorator,
	stackName string) AssetOption

DecorateTemplate uses an ExtensionImpl to inject data into an extension

func ExecuteTemplate added in v1.5.4

func ExecuteTemplate(data interface{}) AssetOption

ExecuteTemplate executes the data parameter on a text/template

type StackTemplateDecorator added in v1.5.4

type StackTemplateDecorator interface {
	DecorateStackTemplate(assetName string, stackName string, templateBody io.Reader) (io.Reader, error)
}

StackTemplateDecorator is a stub for decorate template struct to avoid circular dependencies

Jump to

Keyboard shortcuts

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