Add `after` to template function documentation
authorAriejan de Vroom <ariejan@ariejan.net>
Wed, 10 Jun 2015 21:53:39 +0000 (23:53 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Jun 2015 19:18:38 +0000 (21:18 +0200)
docs/content/templates/functions.md

index c949fa987ef052b5191f15806dd8e139f45ad322..a731f69831cd8d2cfa90e617fd1a207bc9ac23da 100644 (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.