Adding comments to Bindings


Has anyone found a way to add a comment to the “Value (JEXL expression)” in the Bindings tab of templates in 6.5.2? Some of our expressions getting quite complicated, and it would be useful to be able add a very short description for future/other developer’s reference.




We should support JEXL comments in Bindings (see the JEXL syntax documentation for details about formatting comments). But it appears we have a bug that prevents their use; the system returns an error if you include a comment in the binding code. The bug ID is RX-13747.

JEXL comments work correctly in JEXL Location Schemes.

A workaround for Templates is to add Velocity comments about your bindings to the code in the Source tab.