Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for the global blank literal #1345

Open
westonganger opened this issue Jul 12, 2019 · 0 comments
Open

Add documentation for the global blank literal #1345

westonganger opened this issue Jul 12, 2019 · 0 comments

Comments

@westonganger
Copy link
Contributor

I was going to make a PR for blank? and present? filters but then found this super handy blank literal.

{% if section.settings.description != blank %}
  <p>{{ section.settings.description }}</p>
{% endif %}

This should be added to the documentation somewhere.

Shopify/liquid#223 (comment)

https://github.com/Shopify/liquid/blob/master/lib/liquid/expression.rb#L20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants