Add docs for the strip commands

This commit is contained in:
Garen Torikian
2015-03-20 16:23:38 -07:00
parent 2937f1988b
commit 99db066e2a
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
--- ---
title: lstrip title: lstrip
--- ---
Strips all whitespace (tabs, spaces, and newlines) from the left side of a string.
| Code | Output |
|-------------------------------------------------------:|:-------------------|
| {% raw %}`{{ ' too many spaces ' | lstrip }}`{% endraw %} | `"too many spaces "` |
+6
View File
@@ -1,3 +1,9 @@
--- ---
title: rstrip title: rstrip
--- ---
Strips all whitespace (tabs, spaces, and newlines) from the right side of a string.
| Code | Output |
|-------------------------------------------------------:|:-------------------|
| {% raw %}`{{ ' too many spaces ' | rstrip }}`{% endraw %} | `"too many spaces "` |
+6
View File
@@ -1,3 +1,9 @@
--- ---
title: strip title: strip
--- ---
Strips all whitespace (tabs, spaces, and newlines) from a string.
| Code | Output |
|-------------------------------------------------------:|:-------------------|
| {% raw %}`{{ ' too many spaces ' | strip }}`{% endraw %} | `"too many spaces"` |