[
https://issues.apache.org/jira/browse/VELOCITY-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna resolved VELOCITY-281.
-----------------------------------
Resolution: Won't Fix
Fix Version/s: (was: 1.6)
2.0
Here's my reasons:
- Variables are already available to the template being #parse'd.
- Most macros needed by multiple templates should be put in a global library.
- The syntax is unpleasant.
- I don't see much interest in this.
- I would bet that any actual use case could be solved by either a tool or
#define() (see VELOCITY-174)
> passing local variables and velocimacros with #parse()
> ------------------------------------------------------
>
> Key: VELOCITY-281
> URL: https://issues.apache.org/jira/browse/VELOCITY-281
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 1.4
> Environment: Operating System: other
> Platform: Other
> Reporter: Marcus Sundman
> Priority: Minor
> Fix For: 2.0
>
>
> Let's say I have "velocimacro.permissions.allow.inline.local.scope = true".
> It would still be nice to be able to pass variables and velocitymacros to a
> template imported by #parse(). E.g., #parse("foo.vm" $myvar #mymacro) could
> make
> $myvar and #mymacro accessible to "foo.vm" when it's parsed.
--
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]