You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just like shopify has a {% liquid %} tag (see liquid tag in their docs), it would be beneficial to have a block of hubl without delimeters on each tag.
Example
Before:
{% if foo == 'bar' %}
{% set my_variable = 'xyz' %}
{% elif foo == 'baz' %}
{% set my_variable = 'pdq' %}
{% else %}
{% set my_variable = 'examine your zipper on channel 2' %}
{% endif %}
After:
{% hubl
if foo == 'bar'
set my_variable = 'xyz'
elif foo == 'baz'
set my_variable = 'pdq'
else
set my_variable = 'examine your zipper on channel 2'
endif
%}
Why
Shopify recommends using their liquid tag if four or more consecutive Liquid tags ({% ... %}) are found. They've even commited to that rule in their official theme check – and I think for good reason. Modules can get complicated – even with standard hubl functions and our own custom macros. The delimiters get clunky quick and I think a lot of devs get worn out.
Feature request
Just like shopify has a
{% liquid %}
tag (see liquid tag in their docs), it would be beneficial to have a block of hubl without delimeters on each tag.Example
Before:
After:
Why
Shopify recommends using their liquid tag if four or more consecutive Liquid tags ({% ... %}) are found. They've even commited to that rule in their official theme check – and I think for good reason. Modules can get complicated – even with standard hubl functions and our own custom macros. The delimiters get clunky quick and I think a lot of devs get worn out.
This was originally brought up in this slack idea.
The text was updated successfully, but these errors were encountered: