hugo/helpers
bep 420c9e4d3d Add writable context to Node
The variable scope in the Go templates makes it hard, if possible at all, to write templates with counter variables or similar state.

This commit fixes that by adding a writable context to Node, backed by a map: Scratch.

This context has three methods, Get, Set and Add. The Add is tailored for counter variables, but can be used for any built-in numeric values or strings.
2015-01-31 22:01:30 +01:00
..
content.go Add site-wide/per-page [blackfriday] extensions option 2015-01-26 09:55:37 +01:00
content_test.go Add more tests to helper 2015-01-27 10:15:57 +01:00
general.go Add writable context to Node 2015-01-31 22:01:30 +01:00
general_test.go Add writable context to Node 2015-01-31 22:01:30 +01:00
path.go Fix for issue 839 and 490 on Windows 2015-01-30 14:18:17 +01:00
path_test.go Use runtime.GOOS to identify Windows specific path tests 2015-01-27 23:01:32 +01:00
pygments.go
url.go ignore root path, no need strip traling slash 2015-01-28 09:43:43 +01:00
url_test.go ignore root path, no need strip traling slash 2015-01-28 09:43:43 +01:00