From 40a92a062ddc6204db6e2c6cbdb5094c1068fc72 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Wed, 10 Jun 2015 23:53:39 +0200 Subject: [PATCH] Add `after` to template function documentation --- docs/content/templates/functions.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index c949fa987..a731f6983 100644 --- 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.