# XWiki Syntax Guide

Last modified by superadmin on 2017/11/28 14:52

#### Export

#### Office Formats

Export as PDF Export as ODT Export as RTF

#### Other Formats

Export as HTML

XWiki Syntax 2.1 » Programming » Scripts

## XWiki Syntax 2.1: Scripts

### 2.0 Scripts

In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This lead to issues for example when the user was involuntarily entering Velocity content. It was also performance hungry for pages not requiring Velocity content. There were several other technical limitations. Thus in XWiki Syntax 2.1 Velocity scripts must be entered using the velocity macro. Same goes for entering Groovy scripts.

Feature | XWiki Syntax 2.1
--- | ---
Velocity script |
    {{velocity}}
    #set ($var = "whatever")
    {{/velocity}}
Groovy script |
    {{groovy}}
    def var = "whatever"
    {{/groovy}}

Tags:
Created by superadmin on 2013/11/14 17:41

- Comments (0)
- Attachments (0)
- Information

# Applications

# Tips

If you're starting with XWiki, check out the Getting Started Guide.

# Need help?

If you need help with XWiki you can contact:

- Community Support
- Professional Support