google / escapevelocity

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

Add support for `$bodyContent` in macros. #38

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Add support for $bodyContent in macros.

If a macro is invoked not as #foo() but as #@foo() ... #end, then the variable $bodyContent is defined in the macro body to be the ... content.

RELNOTES=Added support for #@foo() ... #end, where the ... is available in the body of the foo macro as $bodyContent.