You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2006/04/11 16:07:29 UTC
[jira] Commented: (VELOCITY-437) Intercept output of objects
[ http://issues.apache.org/jira/browse/VELOCITY-437?page=comments#action_12374039 ]
Will Glass-Husain commented on VELOCITY-437:
--------------------------------------------
Kind of a neat idea. Modifying ASTReference directly is the way to go -- we ignore all Node files generated by jjtree.
Can you give a use case or two explaining why this feature is useful? Are you using this in your own apps? How?
> Intercept output of objects
> ---------------------------
>
> Key: VELOCITY-437
> URL: http://issues.apache.org/jira/browse/VELOCITY-437
> Project: Velocity
> Type: New Feature
> Versions: 1.4
> Reporter: Ståle Undheim
> Priority: Minor
> Attachments: valuewriter.patch
>
> Currently, all reference objects in a Velocity template file are put out using the objects toString method, with no means to control this mechanism. I propose to change this by having interceptors that can pick up variables before they are run .toString on, and write them using their own means instead.
> If I figure out how to attach files to this after posting, I will add a patch with all the code necessary to implement this.
--
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: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org