Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// Asset, AssetDir are functions used to look up the assets.
// These match the function signatures used by go-bindata so you
// can just use method handles for these.
Asset func(string) ([]byte, error)
AssetDir func(string) ([]string, error)
// Context is the template context that is given when rendering
Context map[string]interface{}
// accessed using {% extends %} in templates. Example:
// {% extends "foo:bar/baz.tpl" %} would find the "bar/baz.tpl" in the
// "foo" share.
SharedExtends map[string]*Data
}
Data is the struct that wraps the assets go-bindata generates in your package to provide more helpers.
func (*Data) CopyDir ¶
CopyDir copies all the assets from the given prefix to the destination directory. It will automatically set file permissions, create folders, etc.
func (*Data) RenderAsset ¶
RenderAsset renders a single bindata asset. This file will be processed as a template if it ends in ".tpl".
func (*Data) RenderReal ¶
RenderReal renders a real file (not a bindata'd file). This file will be processed as a template if it ends in ".tpl".
Click to show internal directories.
Click to hide internal directories.