velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bayne <>
Subject Pluggable directives
Date Tue, 06 Nov 2001 04:57:51 GMT
There doesn't appear to be any mechanism by which an application can add
its own pluggable directives to Velocity.

RuntimeInstance.initializeDirectives() loads the
from its local class loader and sets up the directives hashtable that is
passed to the parsers later in initializeParserPool().

While it may be possible to insert an
org/apache/velocity/runtime/defaults/ into the
classpath ahead of the one provided by Velocity, it's tricky and seems
like a questionable approach.

Perhaps some mechanism for specifying additional directives to be loaded
via the file is in order?

-- mdb  "If reason and authority conflict, reason should be given
  /o)\   preference. And if that doesn't sound reasonable to you, you'll
  \(o/   just have to accept it."     -- Johannes Scotus Eriugena

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message