@Role public interface VelocityManager
| Modifier and Type | Method and Description |
|---|---|
default boolean |
evaluate(Writer out,
String templateName,
Reader source)
Renders the input string using the context into the output writer.
|
default org.apache.velocity.VelocityContext |
getCurrentVelocityContext() |
org.apache.velocity.VelocityContext |
getVelocityContext() |
VelocityEngine |
getVelocityEngine()
Get the current Velocity Engine or create one if none has been created.
|
org.apache.velocity.VelocityContext getVelocityContext()
default org.apache.velocity.VelocityContext getCurrentVelocityContext()
VelocityEngine getVelocityEngine() throws XWikiVelocityException
XWikiVelocityException - if the Velocity Engine cannot be createddefault boolean evaluate(Writer out, String templateName, Reader source) throws XWikiVelocityException
The current ScriptContext will be used and updated after the execution.
Anything set in the current VelocityContext will also be taken into account.
out - the writer in which to render the outputtemplateName - the string to be used as the template name for log messages in case of error. Also used
internally by Velocity as a cache index key for caching macros.source - the input containing the VTL to be rendered, as a ReaderXWikiVelocityException - in case of errorCopyright © 2004–2016 XWiki. All rights reserved.