I have written a macro that prints HTML output with passed value. Let's say:
<@myMacro 'foo'>
Right now I'd like to pass to this macro a message from .properties file.
<@spring.message code="key"/> // contains 'foo'
What I need is to pass value of key message with additional string like:
<@spring.message code="key"/>bar // foobar
How can I do this to pass foobar to myMacro ?
Spring version: 2.5
Solution was quite simple:
<#assign fooVar><@spring.message code="key"/>bar</#assign>
<@myMacro fooVar>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With