escape, now, floor not working in liquid

r_a
New Member
3 0 0

escape:  {{ 'asdfas?asd' | escape }}

o/p: "asdfas?as"

now : {{ 'now' | date: '%y' }}

o/p: "now"

floor: {{ 10.5 | floor }}

o/p: 10.5

i could see these operators are not working for me can you help me with this?

 

 

0 Likes
ahsaniub123
Shopify Partner
50 9 6

Hi @r_a 

where did you add this code in theme? Can you please send me a screenshot of the code?

Did my answer work for you? Please drop a Like and Mark it as Accepted.
Want to develop/design/customize your theme Hire me.
Feel free to contact me at Email: ahsan.iub123@gmail.com | Skype: ahsaniub123 | Whatsapp: +92 3012 104 116.
Shopify Expert | Shopify Developer | Liquid Developer
0 Likes
r_a
New Member
3 0 0

content = "{{ 'asdfas?asd' | escape }}"

Liquid::Template.parse(content)

0 Likes
r_a
New Member
3 0 0

my gem version is 2.4.1, does this version supports all ops

0 Likes