Open davidwarrington opened 3 years ago
Padding a Liquid tag with whitespace allows room to breathe and reduces visual debt, making your code easier to read.
{{ title | capitalize }} {{ description | truncatewords: 30 }} {%- render 'banner' -%} {%- if collection.products.size >= 50 or product.tags contains 'pattern:dots' -%} // ... {%- endif -%}
{{title | capitalize}} {{description|truncatewords:30}} {%-render 'banner'-%} {%-if collection.products.size >= 50 or product.tags contains 'pattern:dots'-%} // ... {%-endif-%}
Padding a Liquid tag with whitespace allows room to breathe and reduces visual debt, making your code easier to read.
Examples
Good
Bad