Last modified by Ludovic Dubost on 2009/04/30 10:41

From version 5.1
edited by Ludovic Dubost
on 2009/04/30 10:33
Change comment: There is no comment for this version
To version 9.1
edited by Ludovic Dubost
on 2009/04/30 10:41
Change comment: There is no comment for this version

Summary

Details

Page properties
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.0
1 +XWiki 1.0
Content
... ... @@ -1,5 +1,5 @@
1 -{{include document="Test.TestMacroSyntax10" output=false /}}
2 -{{velocity}}
3 -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
1 +This works but will include the content of the macro document in the syntax 1.0 document. This is not a problem in syntax 1.0 as long as only white spaces or white lines are coming out of the document. Now we could make a slight modification to includeMacros to catch the resulting content and not show it.
2 +
3 +#includeMacros("Test.TestMacroSyntax10")
4 4  #mymacroinsyntax10doc("World")
5 -{{/velocity}}
5 +