commit 40a92a062ddc6204db6e2c6cbdb5094c1068fc72
parent c335efdd064b2c15aa52146f59ec267a2385d169
Author: Ariejan de Vroom <ariejan@ariejan.net>
Date: Wed, 10 Jun 2015 23:53:39 +0200
Add `after` to template function documentation
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md
@@ -76,6 +76,16 @@ e.g.
{{ .Render "summary" }}
{{ end }}
+### after
+Slices an array to only the items after the Xth item. Use this in
+combination with `first` use both halves of an array split a item
+X.
+
+e.g.
+
+ {{ range after 10 .Data.Pages }}
+ {{ .Render "title" }}
+ {{ end }}
### getenv
Returns the value of an environment variable.