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
tmpl=Liquid::Template.parse("{% if #{condition} %}true{% else %}false{% endif %}",parse_context)tmpl.render(context) == "true"
The former is hacky and prone to breakage in future releases, the latter is inefficient and has quoting issues. Would it be conceivable to expose this feature in the public API?
The text was updated successfully, but these errors were encountered:
It would be useful to be able to use Liquid conditions outside of templating. This can be hacked by using private APIs like so:
...or by abusing templating like so:
The former is hacky and prone to breakage in future releases, the latter is inefficient and has quoting issues. Would it be conceivable to expose this feature in the public API?
The text was updated successfully, but these errors were encountered: