hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 4502c4e3aeb459a2df101eebdd76ad4318f812b0
parent fe929114d3f34fe1999cd3cacd7f61c0ee0c0a54
Author: digitalcraftsman <digitalcraftsman@protonmail.com>
Date:   Sun,  3 Apr 2016 00:44:25 +0200

docs: Add documentation for hasPrefix template func

Fixes #2039

Diffstat:
Mdocs/content/templates/functions.md | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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.