From 4502c4e3aeb459a2df101eebdd76ad4318f812b0 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Sun, 3 Apr 2016 00:44:25 +0200 Subject: [PATCH] docs: Add documentation for hasPrefix template func Fixes #2039 --- docs/content/templates/functions.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index 0573978de..8e3fdd953 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.