Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorOnMissingKey is the option that configures template to exit on missing values. ErrorOnMissingKey = "missingkey=error" // HelperFileName is the base file name that is not considered a template, but provides additional template definitions. HelperFileName = "_helpers.tpl" )
Variables ¶
This section is empty.
Functions ¶
func GoTemplateFuncMap ¶
Types ¶
type GoTemplateEngine ¶
func NewEngine ¶
func NewEngine() *GoTemplateEngine
func (*GoTemplateEngine) Execute ¶
func (e *GoTemplateEngine) Execute(template *domain.Template, values domain.Values) (domain.RenderResult, error)
func (*GoTemplateEngine) ExecuteString ¶
func (e *GoTemplateEngine) ExecuteString(templateString string, values domain.Values) (domain.RenderResult, error)
type GoTemplateInstrumentation ¶
type GoTemplateInstrumentation struct { }
type GoTemplateStore ¶
type GoTemplateStore struct {
RootDir string
}
func NewTemplateStore ¶
func NewTemplateStore() *GoTemplateStore
func (*GoTemplateStore) FetchTemplates ¶
func (s *GoTemplateStore) FetchTemplates() ([]*domain.Template, error)
Click to show internal directories.
Click to hide internal directories.