docs: Add documentation for hasPrefix template func

Fixes #2039
This commit is contained in:
digitalcraftsman 2016-04-03 00:44:25 +02:00
parent fe929114d3
commit 4502c4e3ae

View file

@ -610,6 +610,12 @@ e.g.
* `{{substr "BatMan" 0 -3}}` → "Bat"
* `{{substr "BatMan" 3 3}}` → "Man"
### hasPrefix
HasPrefix tests whether a string begins with prefix.
* `{{ hasPrefix "Hugo" "Hu" }}` → true
### title
Converts all characters in string to titlecase.