XWiki Syntax Guide
XWiki Syntax 1.0 » Programming » Scripts
XWiki Syntax 1.0: Scripts
1.0 Scripts
| Feature | XWiki Syntax 1.0 |
|---|---|
| Velocity script | #set ($var = "whatever") |
| Groovy script | <% def var = "whatever" %> |
XWiki Syntax 1.0 » Programming » Scripts
In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.
| Feature | XWiki Syntax 1.0 |
|---|---|
| Velocity script | #set ($var = "whatever") |
| Groovy script | <% def var = "whatever" %> |