templatecache

package
v0.0.0-...-cd1516d Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2014 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func L

func L(s string, v ...interface{})

Types

type TemplateCache

type TemplateCache struct {
	HtmlPath string
	Entries  map[string]TemplateEnt
}

BUG(mistone): TemplateCache.Entries accesses need mutual exclusion!

func New

func New(htmlPath string) *TemplateCache

func (*TemplateCache) Make

func (self *TemplateCache) Make(templateName string) (built bool, err error)

type TemplateEnt

type TemplateEnt struct {
	Template *template.Template
	Tree     *parse.Tree
	// contains filtered or unexported fields
}

Notes

Bugs

  • TemplateCache.Entries accesses need mutual exclusion!

  • may duplicate work if deps are shared...

  • no protection from infinite build loops!

Jump to

Keyboard shortcuts

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