Files
hugoDocs/content/functions/hasPrefix.md
T
2017-02-26 19:27:05 -06:00

21 lines
386 B
Markdown

---
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]
tags: []
signature:
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
`hasPrefix` tests whether a string begins with prefix.
* `{{ hasPrefix "Hugo" "Hu" }}` → true