docs: Document shuffle template func

Fixes #2393.
This commit is contained in:
digitalcraftsman 2016-08-29 12:22:37 +02:00
parent 6eff9e5015
commit 38d034df38

View file

@ -97,6 +97,18 @@ One use case is the concatenation of elements in combination with `delimit`:
```
### shuffle
`shuffle` returns a random permutation of a given array or slice, e.g.
```html
{{ shuffle (seq 1 5) }}
<!-- returns [2 5 3 1 4] -->
{{ shuffle (slice "foo" "bar" "buzz") }}
<!-- returns [buzz foo bar] -->
```
### echoParam
Prints a parameter if it is set.