Confluence Docs 3.0 : Basic Introduction to Velocity This page last changed on Jun 24, 2007 by smaddox. ### Example Usage A variable in velocity looks like this:
     $foo
To set a variable:
    #set ($message = "Hello")
A basic if statement:
    #if ($message == "Hello")
       Message received and is "Hello"
    #end
| A velocity variable which evaluates to null will simply render as the variable name. See the Velocity User's Guide
### Related Content
Confluence UI architecture (Confluence Docs 3.0) Labels: sitemesh, vm, velocity-related
Confluence Objects Accessible From Velocity (Confluence Docs 3.0) Labels: velocity-related
Customising Layouts (Confluence Docs 3.0) Labels: customising-looknfeel, velocity-related
Disable Velocity Caching (Confluence Docs 3.0) Labels: faq_conf_dev, velocity-related
Basic Introduction to Velocity (Confluence Docs 3.0) Labels: velocity-related
What's the easiest way to render a velocity template from Java code? (Confluence Docs 3.0) Labels: faq_conf_dev, velocity-related
Working With Decorator Macros (Confluence Docs 3.0) Labels: customising-looknfeel, velocity-related

Document generated by Confluence on Nov 05, 2009 23:34