-
Notifications
You must be signed in to change notification settings - Fork 15
Differences
Mike Bridge edited this page Apr 3, 2015
·
24 revisions
Liquid.NET can group if
expressions using parentheses, which is not currently possible in liquid.
{% if (false and true) or true %}Result #1 is true{% endif %}
{% if false and (true or true) %}Result #2 is true{% endif %}
==> Result #1 is true
You can negate an expression with not
:
{% if not false %}Not false is true.{% endif %}
===> Not false is true.
Liquid.NET does not throw errors to the caller. By default it will try to recover, and render errors into the final version. (You will be able to get a List of them---this is a TODO item.)
In Standard Liquid, using a filter that doesn't exist will fail silently by default. In Liquid.NET, referencing an undefined filter will throw an error:
Standard Liquid
{{ 1 | add: 1 }}
===> 1
Liquid.NET
{{ 1 | add: 1 }}
===> Unknown filter: 'add'
truncate
: Rendering very short strings is slightly different.