class

Crinja::Operator::And

Inherits Crinja::Operator::Logic < Crinja::Operator < Reference < Object

and / or return an operand, as in Jinja2 (and Python), not a Bool. Upstream collapsed both to true/false, so the fallback idiom {{ page.description or site.description }} printed "true" and {% set x = a or "default" %} stored a boolean. Truthiness — and so every {% if %} — is unchanged; the right operand is still evaluated lazily.

Instance methods

value(env : Crinja, op1 : Value, &op2 : -> Value) : Value
Source