<
From version < 20.3 >
edited by Vincent Massol
on 2010/01/03
To version < 20.4 >
edited by Vincent Massol
on 2010/01/03
>
Change comment: Added links to script macro documentations

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,13 @@
1 1  {{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
2 -XWiki integrates [[jsr-223>>http://scripting.dev.java.net/]] scripting. [[Velocity>>http://velocity.apache.org/]], [[Groovy>>http://groovy.codehaus.org/]] and [[Python>>http://jython.sourceforge.net]] languages come bundled with XWiki while there are macros for Php and [[Ruby>>http://www.jruby.org/]] but the script engines are not bundled in order to decrease installation size. Scripting allows you to create basic to complex web applications at the XWiki page (or view) layer without the need for compiling code or deploying software components. In other words, you can use scripting syntax in addition to wiki and HTML syntax as the contents of an XWiki page.
2 +Scripting allows you to create basic to complex web applications at the XWiki page (or view) layer without the need for compiling code or deploying software components. In other words, you can use scripting syntax in addition to wiki and HTML syntax as the contents of an XWiki page.
3 3  
4 +XWiki integrates [[jsr-223>>http://scripting.dev.java.net/]] scripting. You can script using several available languages by using one of the following macros:
5 +* [[Velocity Macro>>code:Macros.VelocityMacro]] (installed by default in XWiki Enterprise)
6 +* [[Groovy Macro>>code:Macros.GroovyMacro]] (installed by default in XWiki Enterprise)
7 +* [[Python Macro>>code:Macros.PythonMacro]] (installed by default in XWiki Enterprise)
8 +* [[Ruby Macro>>code:Macros.RubyMacro]] (not installed by default in XWiki Enterprise)
9 +* [[PHP Macro>>code:Macros.PHPMacro]] (not installed by default in XWiki Enterprise)
10 +
4 4  = XWiki Scripting API =
5 5  
6 6  The API is documented in Javadoc format and can be accessed here: [[XWiki API Javadoc>>DevGuide.API]]. If you are not familiar with Java or object oriented programming, you will probably be confused by the API documentation. It is not within the scope of our documentation to teach you all the details about Java, or object oriented programming. You can find all of that information already online. You can also explore the page code found throughout the [[Code Zone>>code:Main.WebHome]] area to see how others have figured out how to achieve a variety of results.

Get Connected