Interface VelocityMacroFilter
-
@Role public interface VelocityMacroFilter
Component called before and after velocity execution in velocity macro to modify the content to execute or parse. It can be used for example to reformat the velocity content to take care of indentation etc.- Version:
- $Id: b97b50e56118be8ff2152dc169177588e15d5d89 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
after(String content, org.apache.velocity.VelocityContext velocityContext)
Called just before the result of the velocity script execution is parsed.String
before(String content, org.apache.velocity.VelocityContext velocityContext)
Called just before the velocity script is executed.
-
-
-
Method Detail
-
before
String before(String content, org.apache.velocity.VelocityContext velocityContext)
Called just before the velocity script is executed.- Parameters:
content
- the velocity scriptvelocityContext
- the velocity context. this method can inject here bindings usable in the script like$somebinding
.- Returns:
- the modified content
-
after
String after(String content, org.apache.velocity.VelocityContext velocityContext)
Called just before the result of the velocity script execution is parsed.- Parameters:
content
- the result of the velocity script executionvelocityContext
- the velocity context. This method usually clean the bindings injected in the velocity context bybefore(String, VelocityContext)
- Returns:
- the modified content
-
-