Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FuncMap template.FuncMap = map[string]interface{}{}
FuncMap represents a set of functions, identified by some key, which will be availalbe to templates when rendering. Similarly to the context, the FuncMap will be passed through any time an ace template is rendered. See http://golang.org/pkg/text/template/#FuncMap. There is one func provided by default, called Posts, which is defined in compilers/posts_compiler.
Functions ¶
Types ¶
type Context ¶
type Context map[string]interface{}
Context represents information that will be passed to each page when rendered. E.g. it allows you to render the title in a <title> tag inside of an ace template.
func CopyContext ¶
func CopyContext() Context
Copy context returns a copy of the context. Modifying it will not change the original context. This function can be used to create a per-page or per-post context.