From: digitalcraftsman Date: Sat, 2 Apr 2016 22:44:25 +0000 (+0200) Subject: docs: Add documentation for hasPrefix template func X-Git-Tag: v0.16~134 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4502c4e3aeb459a2df101eebdd76ad4318f812b0;p=brevno-suite%2Fhugo docs: Add documentation for hasPrefix template func Fixes #2039 --- diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index 0573978d..8e3fdd95 100644 --- a/docs/content/templates/functions.md +++ b/docs/content/templates/functions.md @@ -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.