Documentation
¶
Index ¶
- func AbsoluteURLs(args ...reflect.Value) (interface{}, error)
- func DateFormat(args ...reflect.Value) (interface{}, error)
- func EscapeHTML(args ...reflect.Value) (interface{}, error)
- func Filter(args ...reflect.Value) (interface{}, error)
- func First(args ...reflect.Value) (interface{}, error)
- func Last(args ...reflect.Value) (interface{}, error)
- func Map() template.FuncMap
- func Now() time.Time
- func Sort(args ...reflect.Value) (interface{}, error)
- func XMLDecl(args ...reflect.Value) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsoluteURLs ¶
AbsoluteURLs converts all path based urls in html to be absolute, as needed in Atom and RSS feeds. It expects two arguments, the base url and the HTML.
func DateFormat ¶
DateFormat formats the date according to the format. It expects exactly two arguments, a format (which follows the patterns used by Go's Time.Format) and a date, which can either be a date or a string in RFC3339 format, or a date object
func EscapeHTML ¶
EscapeHTML escapes the string using html.EscapeString
func Filter ¶
Filter returns any elements of list where the data at key matches value. It expects three args, a key, a value and a list. Equality is tested using the go == operator.
func First ¶
First returns the first count elements of list. It expects either an integer count and a slice or array list. The count defaults to 1 if not provided.
func Last ¶ added in v0.0.2
Last returns the last count elements of list. It expects either an integer count and a slice or array list. The count defaults to 1 if not provided.
Types ¶
This section is empty.