tpl/collections: Allow first function to return an empty slice

Fixes #5235
This commit is contained in:
Ricardo N Feliciano 2018-09-22 14:58:46 -04:00 committed by Bjørn Erik Pedersen
parent 4f9c109dc5
commit cae07ce84b
3 changed files with 5 additions and 2 deletions

View file

@ -25,3 +25,5 @@ aliases: []
{{ .Render "summary" }}
{{ end }}
```
*Note: Exclusive to `first`, LIMIT can be '0' to return an empty array.*