We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d8c8a3 + acad148 commit 5be2c05Copy full SHA for 5be2c05
src/templates/functions.md
@@ -138,3 +138,28 @@ Will output:
138
true
139
140
```
141
+
142
+## `width(arg)`
143
144
+Returns the width of the input
145
146
+```
147
+text width(111)
148
149
+Will output: `3`
150
151
+## `pad(arg, 5)`
152
153
+Returns a string padded with spaces
154
155
156
+border
157
+ text pad("hi", 4)
158
159
160
+Will output:
161
162
+┌────┐
163
+│hi │
164
+└────┘
165
0 commit comments