[
https://issues.apache.org/jira/browse/VELOCITY-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henning Schmiedehausen closed VELOCITY-128.
-------------------------------------------
> velocity should have a "clearAllReferences"
> -------------------------------------------
>
> Key: VELOCITY-128
> URL: https://issues.apache.org/jira/browse/VELOCITY-128
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.3-rc1
> Environment: Operating System: All
> Platform: All
> Reporter: wk
> Assigned To: Velocity-Dev List
> Priority: Critical
>
> velocity should have a "clearAllReferences" option to eliminate unreplaced
> template references.
> e.g.
> VelocityEngine ve = new VelocityEngine();
> String templateString = "$a$b";
> ve.setProperty( "clearAllReferences", "true"); //<==new request
> VelocityContext context = new VelocityContext();
> context.put("a", "A");
> ve.evaluate( context, writer, "mystring", templateString );
> //writer == "A", note $b disappears.
> //if we want $b not to disappear, either "clearAllReferences" to "false", or
> //use templateString = "$a$$b";
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]