XWiki Syntax 1.0 ยป Programming

XWiki Syntax 1.0: Programming

Macros

1.0 Macros

There are two kinds of macros in XWiki Syntax 1.0:

  • Velocity macros (called using the #macroname(param1 ... paramN) syntax)
  • Radeox macros (called using the {macroname:param1=value1|...|paramN=valueN} syntax)
For the full list of available macros check the Extensions wiki.
FeatureXWiki Syntax 1.0
Velocity Macro
#info("Some text")
Radeox Macro
{code:java}
java content
{code}

HTML

1.0 HTML

It is possible to enter HTML markup directly in the text in XWiki Syntax 1.0.
XWiki Syntax 1.0Result
<b>bold</b>bold

Scripts

1.0 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.
FeatureXWiki Syntax 1.0
Velocity script
#set ($var = "whatever")
Groovy script
<%
def var = "whatever"
%>
Tags:
Created by Admin on 2008/02/20 12:36
    
  • Powered by XWiki 8.4.4-node1. Hosted and managed by XWiki SAS

Get Connected