[ http://issues.apache.org/jira/browse/VELOCITY-468?page=all ]
Will Glass-Husain updated VELOCITY-468: --------------------------------------- Fix Version/s: 1.6 Just trying to figure out, why is this needed? (1) You can create your own context and pass it in to the parse (String inputTemplate, String outputFile) method or (2) You can fill the context with a hashtable. fillContextHash (Context context, Hashtable objs) (yes, this really should be a Map -- it's old code). WILL > 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]