Documentation
¶
Index ¶
- type GoHTMLTemplate
- func (t *GoHTMLTemplate) AddAceTemplate(name, basePath, innerPath string, baseContent, innerContent []byte) error
- func (t *GoHTMLTemplate) AddInternalShortcode(name, content string) error
- func (t *GoHTMLTemplate) AddInternalTemplate(prefix, name, tpl string) error
- func (t *GoHTMLTemplate) AddTemplate(name, tpl string) error
- func (t *GoHTMLTemplate) AddTemplateFile(name, baseTemplatePath, path string) error
- func (t *GoHTMLTemplate) AddTemplateFileWithMaster(name, overlayFilename, masterFilename string) error
- func (gt *GoHTMLTemplate) CompileAmberWithTemplate(b []byte, path string, t *template.Template) (*template.Template, error)
- func (t *GoHTMLTemplate) EmbedShortcodes()
- func (t *GoHTMLTemplate) EmbedTemplates()
- func (t *GoHTMLTemplate) ExecuteTemplateToHTML(context interface{}, layouts ...string) template.HTML
- func (t *GoHTMLTemplate) Funcs(funcMap template.FuncMap)
- func (t *GoHTMLTemplate) GenerateTemplateNameFrom(base, path string) string
- func (t *GoHTMLTemplate) GetClone() *template.Template
- func (t *GoHTMLTemplate) LoadEmbedded()
- func (t *GoHTMLTemplate) LoadTemplates(absPath string)
- func (t *GoHTMLTemplate) LoadTemplatesWithPrefix(absPath string, prefix string)
- func (t *GoHTMLTemplate) Lookup(name string) *template.Template
- func (t *GoHTMLTemplate) MarkReady()
- func (t *GoHTMLTemplate) Partial(name string, contextList ...interface{}) template.HTML
- func (t *GoHTMLTemplate) PrintErrors()
- func (t *GoHTMLTemplate) RebuildClone() *template.Template
- type TemplateProvider
- type Tmpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoHTMLTemplate ¶
type GoHTMLTemplate struct { *template.Template *deps.Deps // contains filtered or unexported fields }
func (*GoHTMLTemplate) AddAceTemplate ¶
func (t *GoHTMLTemplate) AddAceTemplate(name, basePath, innerPath string, baseContent, innerContent []byte) error
func (*GoHTMLTemplate) AddInternalShortcode ¶
func (t *GoHTMLTemplate) AddInternalShortcode(name, content string) error
func (*GoHTMLTemplate) AddInternalTemplate ¶
func (t *GoHTMLTemplate) AddInternalTemplate(prefix, name, tpl string) error
func (*GoHTMLTemplate) AddTemplate ¶
func (t *GoHTMLTemplate) AddTemplate(name, tpl string) error
func (*GoHTMLTemplate) AddTemplateFile ¶
func (t *GoHTMLTemplate) AddTemplateFile(name, baseTemplatePath, path string) error
func (*GoHTMLTemplate) AddTemplateFileWithMaster ¶
func (t *GoHTMLTemplate) AddTemplateFileWithMaster(name, overlayFilename, masterFilename string) error
func (*GoHTMLTemplate) CompileAmberWithTemplate ¶
func (*GoHTMLTemplate) EmbedShortcodes ¶
func (t *GoHTMLTemplate) EmbedShortcodes()
func (*GoHTMLTemplate) EmbedTemplates ¶
func (t *GoHTMLTemplate) EmbedTemplates()
func (*GoHTMLTemplate) ExecuteTemplateToHTML ¶
func (t *GoHTMLTemplate) ExecuteTemplateToHTML(context interface{}, layouts ...string) template.HTML
func (*GoHTMLTemplate) Funcs ¶
func (t *GoHTMLTemplate) Funcs(funcMap template.FuncMap)
func (*GoHTMLTemplate) GenerateTemplateNameFrom ¶
func (t *GoHTMLTemplate) GenerateTemplateNameFrom(base, path string) string
func (*GoHTMLTemplate) GetClone ¶
func (t *GoHTMLTemplate) GetClone() *template.Template
func (*GoHTMLTemplate) LoadEmbedded ¶
func (t *GoHTMLTemplate) LoadEmbedded()
func (*GoHTMLTemplate) LoadTemplates ¶
func (t *GoHTMLTemplate) LoadTemplates(absPath string)
func (*GoHTMLTemplate) LoadTemplatesWithPrefix ¶
func (t *GoHTMLTemplate) LoadTemplatesWithPrefix(absPath string, prefix string)
func (*GoHTMLTemplate) MarkReady ¶
func (t *GoHTMLTemplate) MarkReady()
MarkReady marks the template as "ready for execution". No changes allowed after this is set. TODO(bep) if this proves to be resource heavy, we could detect earlier if we really need this, or make it lazy.
func (*GoHTMLTemplate) Partial ¶
func (t *GoHTMLTemplate) Partial(name string, contextList ...interface{}) template.HTML
func (*GoHTMLTemplate) PrintErrors ¶
func (t *GoHTMLTemplate) PrintErrors()
func (*GoHTMLTemplate) RebuildClone ¶
func (t *GoHTMLTemplate) RebuildClone() *template.Template
type TemplateProvider ¶
type TemplateProvider struct{}
var DefaultTemplateProvider *TemplateProvider
Click to show internal directories.
Click to hide internal directories.