Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateEngine ¶
type TemplateEngine interface { // RenderFile applies data to the template from srcPath. // Instantiated template is saved as dstPath. RenderFile(srcPath string, dstPath string, data interface{}) error // RenderText applies data to the template text. Returns instantiated text. RenderText(in string, data interface{}) (string, error) }
TemplateEngine is an interface to support to use for application template instantiation.
func NewDefaultEngine ¶
func NewDefaultEngine() TemplateEngine
NewDefaultEngine creates and returns default template engine.
Click to show internal directories.
Click to hide internal directories.