Closed gre9ory closed 5 months ago
It is now possible to combine _HT?
with includes by using _HT?/
prefix. If the include returns literal true
or false
the result is treated as a boolean value making it suitable for checks.
For _HT?*
the requirement is sufficiently satisfied with the ability to use _HT*
references within _HT!
and _HT?
template code now. If the content of the _HT?
check is only the evaluation of a reference to a boolean field this already works by directly addressing the field using _HT*
since _HT*
returns the correct type.
State When using
_HT?
the conditional expression must be written in native Go Templating syntax making it unconvenient to access fields or use includes in a short formFeature Idea Combine
_HT?
with_HT*
and_HT/
so that a shorter form is sufficient to write the condition.Alternative 1: Combine symbols like
_HT?*
and_HT?/
Alternative 2: Combine expressions like_HT?_HT*
and_HT?_HT/
In both variants, it must be detected that the condition is a HULL transformation and not a Go templating expression. The HULL transformation must be executed and the result subjected to the boolean check.