Add `last` template function
authorAriejan de Vroom <ariejan@ariejan.net>
Wed, 10 Jun 2015 22:11:47 +0000 (00:11 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Jun 2015 19:18:38 +0000 (21:18 +0200)
commit0a2e5424ab5b684e88eebe87efc88c55e11e9789
treeae8cb7decb17463620328df6a77ca6794081961c
parent627d016cc95d355f54e9565c44bfef419e0c7044
Add `last` template function

`last` allows the user to select the last X items of
and array.
tpl/template_funcs.go
tpl/template_funcs_test.go