Nathan,

In a nutshell I've taken the event handler improvement I wrote previously and made minor tweaks to be backwards compatible. This is all sitting on my hard drive. here's the earlier version:
http://issues.apache.org/bugzilla/show_bug.cgi?id=28388

The patch adds ability to configure "global" event handlers in the velocity.properties file and allows multiple handlers to be chained together. There's also a new handler for intercepting #include / #parse requests. Finally event handlers will have an init() method that provides access to RuntimeInstance and hence "velocity.properties".

I've also made a set of commonly useful event handlers. I'm open to other people's opinions on this, but I think they should be in the core. We get questions all the time about how to escape text, for instance. (JSP 2.0 does this by default).

-> IncludeRelativePath (looks for includes in the same directory as the template) -> IncludeNotFound (specifies an alternate file to include if the page isn't found) -> PrintExceptions (for method exceptions - prints the exception to the page)
-> EscapeEntities

It's the last one I'm still working on. EscapeEntities optionally escapes HTML, XML, CSS, and/or Javascript. I'm toying with making this configurable by template and/or by reference.

WILL

----- Original Message ----- From: "Nathan Bubna" <[EMAIL PROTECTED]>
To: "Velocity Developers List" <[email protected]>
Sent: Wednesday, August 24, 2005 2:32 PM
Subject: Re: wanting to join the team


On 8/24/05, Will Glass-Husain <[EMAIL PROTECTED]> wrote:
#snip
Once we make a significant dent in the bug list, it'll be time to issue
Velocity 1.5.  There's a bunch of new features already present (decimal
numbers, maps, allowing returns within directives).  There's two more I'd
like to get in (extended event handlers and some upgrades to the
Introspector) but we really need to resolve some of the obscure bugs before
we release.  If you can do anything to help it will speed that along.
#snip

Will, would you get/keep me up to speed on your thoughts/plans for
upgrading the event handler stuff if/whenever you get to that?  i've
been having some thoughts there too, some of which could/should have a
lot to do with VelocityTools.

:)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to