Wiki source code of Scripts in XWiki

Last modified by Eleni Cojocariu on 2026/08/26 17:33

Show last authors
1 {{warning}}
2 WIP
3 {{/warning}}
4
5 Scripting lets you build web applications at the XWiki page level, without compiling code or deploying software components. You write scripting syntax alongside wiki markup inside the content of a page (see the [[script syntax for the XWiki 2.1 syntax>>Documentation.UserGuide.Features.XWikiSyntax.WebHome]]).
6
7 XWiki integrates [[JSR-223>>http://jcp.org/en/jsr/detail?id=223]] scripting, giving pages access to XWiki's programming API. This means a page can query, read, and manipulate the wiki and its documents directly, rather than relying on a separately deployed component.
8
9 Scripts run through dedicated macros, one per supported language. XWiki provides a generic [[Script Macro>>extensions:Extension.Script Macro]] plus one dedicated macro per scripting language.
10
11 * [[Velocity Macro>>extensions:Extension.Velocity Macro]] (installed by default in XWiki)
12 * [[Groovy Macro>>extensions:Extension.Groovy Macro]] (installed by default in XWiki)
13 * [[Python Macro>>extensions:Extension.Python Macro]] (installed by default in XWiki)
14 * [[Ruby Macro>>extensions:Extension.Ruby Macro]] (not installed by default in XWiki)
15 * [[PHP Macro>>extensions:Extension.PHP Macro]] (not installed by default in XWiki)
16
17 Macros not installed by default require installing the corresponding extension before use.

Get Connected