mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
Add docs for the strip commands
This commit is contained in:
@@ -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 "` |
|
||||||
|
|||||||
@@ -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 "` |
|
||||||
|
|||||||
@@ -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"` |
|
||||||
|
|||||||
Reference in New Issue
Block a user