Page History
Velocity allows the template designer to easily use a large amount of uninterpreted and unparsed content in VTL code. This is especially useful if you want to avoid multiple directives or sections whose content would otherwise be invalid (and thus unparseable) VTL.
The syntax is as follows:
Code Block | ||
---|---|---|
| ||
#[[ Unparsed Code ]]# |
For example, the following code:
Code Block | ||
---|---|---|
| ||
#[[
#foreach($c in $Class)
$c.name
#end
]]# |
Will be rendered as:
Code Block | ||
---|---|---|
| ||
#foreach($c in $Class)
$c.name
#end |
Info |
---|
The Unparsed Code support is available in HTML, XML, and text files only. |