<
From version < 50.1 >
edited by Vincent Massol
on 2016/09/17
To version < 50.2 >
edited by Vincent Massol
on 2016/09/17
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -307,6 +307,7 @@
307 307  
308 308  Starting with XWiki 8.3 the Velocity bridge has been improved and it's now possible to do the opposite, i.e. define a variable in Velocity and access it from another scripting language. For example:
309 309  
310 +{{code}}
310 310  {{velocity}}
311 311  ## Setting some script binding in Velocity
312 312  #set($myvar = "toto")
... ... @@ -316,6 +316,7 @@
316 316  // Lets use the script binding that has been set in previous script
317 317  print myvar
318 318  {{/groovy}}
320 +{{/code}}
319 319  
320 320  Note that you can also share variables by setting them in the XWiki Context (##xcontext## binding).
321 321  

Get Connected