engine

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultEngine

type DefaultEngine struct {
}

DefaultEngine is a default implementation of the Template Engine needed for Stencil

func New

func New() DefaultEngine

New Creates a new instance of the Default Engine

func (DefaultEngine) ParseAndExecuteFile

func (e DefaultEngine) ParseAndExecuteFile(sourcePath string, settings interface{}, wr io.Writer) error

ParseAndExecuteFile will parse a file as a template and execute it using the settings provided. it will write out to the destinationPath using the FileMode supplied.

func (DefaultEngine) ParseAndExecutePath

func (e DefaultEngine) ParseAndExecutePath(path string, settings interface{}) (string, error)

ParseAndExecutePath will parse the path as a template and execute it using the settings provided

Jump to

Keyboard shortcuts

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