[xwiki-users] script variables inside PlantUML macro
Is it possible to use script variables inside PlantUML macro? I tried: {{velocity}} {{plantuml}} ... {{/plantuml}} {{velocity}} but this method doezn't work. Maybe existing another solution? -- Thanks beforehand Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/script-variables-inside-PlantUML-macro-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
You could try, though not very readable : Maybe clearer with {{groovy}} and """ strings. -- View this message in context: http://xwiki.475771.n2.nabble.com/script-variables-inside-PlantUML-macro-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello, Yes, you can with {{plantuml}} ... {{velocity}} ... {{/velocity}} ... {{/plantuml}} macros are executed from in to out Regards, Arnaud. 2012/4/15 Eugen Colesnicov <[email protected]>:
Is it possible to use script variables inside PlantUML macro? I tried: {{velocity}} {{plantuml}} ... {{/plantuml}} {{velocity}} but this method doezn't work. Maybe existing another solution?
-- Thanks beforehand Eugen Colesnicov
-- View this message in context: http://xwiki.475771.n2.nabble.com/script-variables-inside-PlantUML-macro-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Apr 17, 2012, at 10:20 PM, Arnaud bourree wrote:
Hello,
Yes, you can with
{{plantuml}} ... {{velocity}} ... {{/velocity}} ... {{/plantuml}}
macros are executed from in to out
Actually it's the opposite! :) There's no notion of nested macros. It's up to the outmost macro to decide what to do with its content. So in this case it would be: {{velocity}} … {{plantuml}} … This will work since the velocity macro does the following: * execute velocity on its content * consider the result as wiki syntax Thanks -Vincent
Regards,
Arnaud.
2012/4/15 Eugen Colesnicov <[email protected]>:
Is it possible to use script variables inside PlantUML macro? I tried: {{velocity}} {{plantuml}} ... {{/plantuml}} {{velocity}} but this method doezn't work. Maybe existing another solution?
-- Thanks beforehand Eugen Colesnicov
-- View this message in context: http://xwiki.475771.n2.nabble.com/script-variables-inside-PlantUML-macro-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Arnaud bourree -
Eugen Colesnicov -
jerem -
Vincent Massol