Wiki source code of TestMacroSyntax10UsedFrom20

Last modified by Vincent Massol on 2009/04/30 10:58

Hide last authors
Ludovic Dubost 3.1 1 = Method 1 uses an XWiki syntax 2.0 include
2
Vincent Massol 4.1 3 {{include document="Test.TestMacroSyntax10" context="current"/}}
Ludovic Dubost 1.1 4 {{velocity}}
5 This works but the include up there will include the content of the macro file so generate a lot of white spaces and it will try (i think) converting the macro file to syntax 2.0 which generates a risk of breaking the macros if they are complex and include JS
6 #mymacroinsyntax10doc("World")
7 {{/velocity}}