added "eq" function to docs.

This commit is contained in:
Daniel Fairhead 2014-09-09 14:26:51 +01:00 committed by spf13
parent df489b4712
commit 012a473e27

View file

@ -35,6 +35,12 @@ If parameter is set, then echo it.
e.g. {{echoParam .Params "project_url" }} e.g. {{echoParam .Params "project_url" }}
### eq
Return true if the parameters are equal.
e.g.
{{ if eq .Section "blog" }}current{{ end}}"
### first ### first
Slices an array to only the first X elements. Slices an array to only the first X elements.