{{ product.price | money }}
#=> 1 000 руб.
{{ 1000 | money }}
#=> 1 000 руб.
{{ 'sales' | append: '.jpg' }}
#=> sales.jpg
{{ 'sale' | prepend: 'Made a great ' }}
#=> Made a great sale
{{ 'capitalize me' | capitalize }}
#=> Capitalize me
<!-- product.title = "Awesome Shoes" -->
{{ product.title | replace: 'Awesome', 'Mega' }}
#=> Mega Shoes
{{ 'i want this to be uppercase' | upcase }}
#=> I WANT THIS TO BE UPPERCASE
{{ 'UPPERCASE' | downcase }}
#=> uppercase
{{ "<p>test</p> <div class='block'></div>" | escape }}
#=> <p>test</p> <div class='block'></div>
{% capture var %}
One
Two
Three
{% endcapture %}
{{ var | newline_to_br }}
#=>
One <br>
Two<br>
Three<br>
{{ '<p>Текст в теге </br> новая строка</p>' | strip_html | truncate: 20 }}
>> Текст в теге нов...
{{ 'test md5' | md5 }}
#=> 0e4e3b2681e8931c067a23c583c878d5
{{ "Hello, world. Goodbye, world." | remove: "world" }}
#=> Hello, . Goodbye, .
{{ "Hello, world. Goodbye, world." | remove_first: "world" }}
#=> Hello, . Goodbye, world.
{{ " So much room for activities! " | lstrip }}
>> So much room for activities!
{{ "The cat came back the very next day" | truncate: 13 }}
The cat ca...
{{ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | truncate: 18, ", and so on" }}
ABCDEFG, and so on
{{ "The cat came back the very next day" | truncatewords: 4 }}
The cat came back...
{{ "The cat came back the very next day" | truncatewords: 4, "--" }}
The cat came back--
{{ "john@liquidhub.ru" | url_encode }}
=> john%40liquidhub.ru
{{ 'john%40liquidhub.ru' | url_decode }}
=> john@liquidhub.ru