You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:35 UTC
[jira] Closed: (VELOCITY-128) velocity should have a
"clearAllReferences"
[ 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org