I'm not aware of any other way to point Velocity to macros that should be global. However, you may still be able to take them from your database:
http://velocity.apache.org/engine/devel/apidocs/org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.html or from your String: http://velocity.apache.org/engine/devel/apidocs/org/apache/velocity/runtime/resource/loader/StringResourceLoader.html <disclaimer>i haven't used either of these resource loaders myself yet.</disclaimer> On 2/28/07, Oliver Siegmar <[EMAIL PROTECTED]> wrote:
Hello! Is there a way to define global macros without defining them in a file and include that file with the 'velocimacro.library' property? I have a String that contains a lot of macros (loaded from database) and want to define them globally so that all templates can use them. Best Oliver --------------------------------------------------------------------- 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]
