Add after to template function documentation

This commit is contained in:
Ariejan de Vroom authored and Bjørn Erik Pedersen committed 2015-06-15 21:18:38 +02:00
1 parent c335efdd06
commit 40a92a062d
1 file changed
+10
+10
View File
@@ -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.