Using variables inside tags

53 views
Skip to first unread message

Kaner TUNCEL

unread,
Mar 9, 2018, 12:43:41 AM3/9/18
to dotliquid
Hi,
Is there any option to use variables inside tags like,

{% for product in category.products | limit: {{section.limit}} %}

Thanks in advance..

Hugo Augusto

unread,
Aug 3, 2018, 10:29:02 AM8/3/18
to dotliquid
Sure you can! 

{% assign mylimit = 5 %}

{% for product in category.products limit:{{mylimit}} %}



Reply all
Reply to author
Forward
0 new messages