Open westonganger opened 5 years ago
I was going to make a PR for blank? and present? filters but then found this super handy blank literal.
blank?
present?
blank
{% if section.settings.description != blank %} <p>{{ section.settings.description }}</p> {% endif %}
This should be added to the documentation somewhere.
https://github.com/Shopify/liquid/issues/223#issuecomment-376816247
https://github.com/Shopify/liquid/blob/master/lib/liquid/expression.rb#L20
I was going to make a PR for
blank?
andpresent?
filters but then found this super handyblank
literal.This should be added to the documentation somewhere.
https://github.com/Shopify/liquid/issues/223#issuecomment-376816247
https://github.com/Shopify/liquid/blob/master/lib/liquid/expression.rb#L20