mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Add docs for the strip commands
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
---
|
||||
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
|
||||
---
|
||||
|
||||
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
|
||||
---
|
||||
|
||||
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