|
From: McDonald, B. <Bru...@ba...> - 2003-10-09 17:51:38
|
It is multivalued - it should at least contain the currect working directory. -----Original Message----- From: David Kinnvall [mailto:dav...@al...] Sent: Thursday, October 09, 2003 1:33 PM To: McDonald, Bruce Cc: bab...@li... Subject: Re: [Babeldoc-devel] Enable file-based inclusion of Velocity templates? McDonald, Bruce wrote: > The babeldoc user env variable is guaranteed to be there (except in web containers maybe) Is that what gets exposed through the user.dir property? Is it a single value at all times, or can it be multivalued? If it can be multivalued (comma-separated, or whatever) it would probably be a good thing to parse that somehow and feed Velocity what it needs to be fed to properly grok that as well? Would be nice if there was something that could be guaranteed to be set to a "reasonable" value regardless of exec context. > This looks like a great patch. Well, sometimes a really small patch can have big effects. I'm contemplating using yet another ResourceLoader that is available for Velocity, that I wrote a few years ago, namely one that fetches templates from a DataSource. Combining that with the support in Babeldoc for getting pipeline stuff from a database as well could make for some nifty setups, I think. Hmm...now that I think about it, there is a resource loader in Babeldoc, of sorts, maybe that one could be fitted with a layer that lets it function as a ResourceLoader for Velocity as well, transparently? That could be neat, no? Oh, well, one thing at a time. /David |