mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 13:30:59 +00:00

This change allows simplifying the use of filter expressions, because you won't have to care about spaces around the `|` pipe operator.
34 lines
488 B
HTML
34 lines
488 B
HTML
{% if a * c > b -%}
|
|
mul
|
|
{%- endif -%}
|
|
{% if c / c == a -%}
|
|
div
|
|
{%- endif -%}
|
|
{% if a % c == b -%}
|
|
mod
|
|
{%- endif -%}
|
|
{% if a + b == c -%}
|
|
add
|
|
{%- endif -%}
|
|
{% if a << b == c -%}
|
|
rsh
|
|
{%- endif -%}
|
|
{% if c >> b == a -%}
|
|
lsh
|
|
{%- endif -%}
|
|
{% if a bitand b == b -%}
|
|
band
|
|
{%- endif -%}
|
|
{% if b xor c == a + c -%}
|
|
bxor
|
|
{%- endif -%}
|
|
{% if b bitor c == a + c -%}
|
|
bor
|
|
{%- endif -%}
|
|
{% if a == b && a + b == c -%}
|
|
and
|
|
{%- endif -%}
|
|
{% if a == c || a == 1 -%}
|
|
or
|
|
{%- endif -%}
|