In Confluence, in XWork actions, we use Velocity templates.
However, in some circumstances, the macros are not interpreted.
Example 1
Even the #requireResource() is not interpreted!
Example 2
I include a file in my XWork action:
#parse("/actions/mvc.vm")
#DONT_DISPLAY("Some text")
The file defines a macro named #DONT_DISPLAY, which does nothing, and certainly not displays the parameter. But when we display the page in Confluence, it displays it. The rendering is:
#DONT_DISPLAY("Some text") <-- This is what is really printed into the HTML page.
Does anyone have an idea about why the #parse()
or the #macro()
instructions have no effect?