[ 
https://issues.apache.org/jira/browse/VELOCITY-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660879#action_12660879
 ] 

Byron Foster commented on VELOCITY-664:
---------------------------------------

Nulling the token image doesn't work because the Literal directive (ironically) 
is dependent on it.  Maybe I can revisit this when we remove the literal 
directive, as it should be :)  Actually what I would like to do is strip All 
tokens off the nodeTree once initialization is complete.  There is no need to 
keep these around.

Anyway,  All changes for this issue have been reversed out.

Concerning your question.  Yes, it appears the AST nodes are initialized twice 
when they are in a macro.  Ounce when they are loaded, and then again the first 
time VelocimacroProxy.init  is called.


> Unnecessary double storing of template text
> -------------------------------------------
>
>                 Key: VELOCITY-664
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-664
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>            Reporter: Byron Foster
>
> ASTText makes a copy of the token image and uses the copy to render.  This 
> means that ASTText keeps two copies of the text.  In the majority of cases 
> ASTText can use the token image.

-- 
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]

Reply via email to