google / escapevelocity

A subset reimplementation of Apache Velocity with a much simpler API.
Apache License 2.0
33 stars 11 forks source link

Allow undefined `$references` anywhere in an `#if` expression. #32

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Allow undefined $references anywhere in an #if expression.

Previously we allowed #if ($undefined), where $undefined is an undefined reference, but not #if (!$undefined) or #if ($defined || $undefined). The change is consistent with Velocity.

RELNOTES=n/a