summaryrefslogtreecommitdiffstats
path: root/docs/data
diff options
context:
space:
mode:
authorDavid E. Wheeler <david@justatheory.com>2018-06-03 02:55:37 -0400
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-06-03 09:55:37 +0300
commit13435a6f608306c5094fdcd72a1d9538727f91b2 (patch)
treef452078c55bfe6d326d866f9aaaebf338d560cec /docs/data
parent07b96d16e8679c40e289c9076ef4414ed6eb7f81 (diff)
tpl: Add strings.Repeat
Diffstat (limited to 'docs/data')
-rw-r--r--docs/data/docs.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index 2a7f727b7..4eddf8eae 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -3410,6 +3410,20 @@
]
]
},
+ "Repeat": {
+ "Description": "Repeat returns a new string consisting of count copies of the string s.",
+ "Args": [
+ "s",
+ "n"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{ \"yo\" | strings.Repeat 4 }}",
+ "yoyoyoyo"
+ ]
+ ]
+ },
"Truncate": {
"Description": "Truncate truncates a given string to the specified length.",
"Args": [