|
|||||
|
|||||
Templating Basics
Templates are very simple to write. The are comprised of any string of text, and are decorated using orb-tags. The Orb TagOrb tags are comprised of a preceding @ character, followed by {...} brackets which contain regular MVEL expressions. My name is: @{name}
In this template, we have a simple property expression in our orb-tag, which returns the value of name. So if we were to inject a variable called name, or provide a Context object that contains the field name and evaluate this template, we'll get something like this back: My name is: Jane Doe It's pretty simple.
|
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||