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 (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
Click to show internal directories.
Click to hide internal directories.