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:
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.