tplimpl

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

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 (gt *GoHTMLTemplate) CompileAmberWithTemplate(b []byte, path string, t *template.Template) (*template.Template, error)

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) Lookup

func (t *GoHTMLTemplate) Lookup(name string) *template.Template

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

func (*TemplateProvider) Clone

func (*TemplateProvider) Clone(d *deps.Deps) error

Clone clones

func (*TemplateProvider) Update

func (*TemplateProvider) Update(deps *deps.Deps) error

Update updates the Hugo Template System in the provided Deps. with all the additional features, templates & functions

type Tmpl

type Tmpl struct {
	Name string
	Data string
}

Jump to

Keyboard shortcuts

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