You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/07/17 11:25:20 UTC

[jira] [Closed] (VELOCITY-808) Proposal to add ability to pass variables to #parse()

     [ https://issues.apache.org/jira/browse/VELOCITY-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claude Brisson closed VELOCITY-808.
-----------------------------------
    Resolution: Won't Fix

I'm -1 too: you can always define a macro that will define whatever you need before calling parse.

> 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
>              Labels: parse
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org