[ 
http://issues.apache.org/jira/browse/VELOCITY-468?page=comments#action_12444050 
] 
            
Will Glass-Husain commented on VELOCITY-468:
--------------------------------------------

Hi,

I'm not a big texen user, so, could you explain wouldn't this work?  You could 
subclass Generator and call getContext.  Or just do the following in calling 
code.

Context context = new VelocityContext();
context.put("a","zz");
context.put("b","zz");
context.put("c","zz");
generator.parse("template1.vm",context);
generator.parse("template2.vm",context);
generator.parse("template3.vm",context);




> Allowing putting objects into control context from VTL
> ------------------------------------------------------
>
>                 Key: VELOCITY-468
>                 URL: http://issues.apache.org/jira/browse/VELOCITY-468
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Texen
>    Affects Versions: 1.4
>            Reporter: Mojmir Hanes
>            Priority: Minor
>             Fix For: 1.6
>
>         Attachments: Generator.java.diff
>
>
> I think it would be nice to allow putting objects into control context in 
> VTL. 
> The motivation is straightforward - in some cases you need to put more than 
> one object into context before parsing particular template, so method 
> org.apache.velocity.texen.parse(String inputTemplate, String outputFile, 
> String objectID,Object object) doesn't match your need. 
> What do you think ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
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