mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-02 16:45:12 -07:00
Document downcase
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: downcase
|
||||||
|
---
|
||||||
|
|
||||||
|
This filter makes the entire input string the lower case version of each character within.
|
||||||
|
|
||||||
|
| Code | Output |
|
||||||
|
|-------------------------------------------------------:|:-----------------|
|
||||||
|
| {% raw %}`{{ "Peter Parker" | downcase }}`{% endraw %} | `"peter parker"` |
|
||||||
|
|
||||||
|
It doesn't modify strings which are already entirely lowercase. It works with anything that has a `#to_s` method.
|
||||||
Reference in New Issue
Block a user