summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/hasPrefix.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/hasPrefix.md')
-rw-r--r--docs/content/en/functions/hasPrefix.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/content/en/functions/hasPrefix.md b/docs/content/en/functions/hasPrefix.md
new file mode 100644
index 000000000..3deac60c3
--- /dev/null
+++ b/docs/content/en/functions/hasPrefix.md
@@ -0,0 +1,22 @@
+---
+title: hasprefix
+linktitle: hasPrefix
+description: Tests whether a string begins with prefix.
+godocref:
+date: 2017-02-01
+publishdate: 2017-02-01
+lastmod: 2017-02-01
+categories: [functions]
+menu:
+ docs:
+ parent: "functions"
+keywords: []
+signature: ["hasPrefix STRING PREFIX"]
+workson: []
+hugoversion:
+relatedfuncs: []
+deprecated: false
+aliases: []
+---
+
+* `{{ hasPrefix "Hugo" "Hu" }}` → true