Proposal to add ability to pass variables to #parse()
-----------------------------------------------------

                 Key: VELOCITY-808
                 URL: https://issues.apache.org/jira/browse/VELOCITY-808
             Project: Velocity
          Issue Type: Improvement
          Components: Engine
    Affects Versions: 1.7
            Reporter: Sergiy Kovalchuk


I think it would be very useful to be able to pass variables to #parse(), just 
like to #macro():

#parse("tpl.vm" $var1 $var2 $var3)

This would add $var's to a local scope of "tpl.vm".

Current approach of adding vars to a parent template above pollutes global 
namespace.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to