Re: Setting-up global velocimacro with different name
Anthony Eden <[email protected]> Tue, 04 May 2004 10:11:03 -0400
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
Artem Orlov wrote: > Hi, >=20 > =20 >=20 > I have a problem, trying to setup global velocimacro library file: >=20 > =20 >=20 > The string constant VM_GLOBAL_LIBRARY exists in class=20 > /org.jpublish.view.velocity.JPublishResourceLoader/ and while loading=20 > velocimacro library it compares name of loading template with this=20 > constant. I guess it should be done by other way: ResourceLoader can=20 > compare requesting resource name with /velocimacro.library/ property of= =20 > velocity engine. Thank you for the suggestion. I'll add this to the CVS ASAP. > =20 >=20 > And one more question here: I want to locate all my templates in=20 > =93templates=94 folder, so want my global template setting be something= as=20 > =93template::/library.vm=94 and I can=92t do it using current code, isn= =92t it?=20 > Is it possible to use /DefaultTemplateManager/ class at the=20 > initialization stage? The templates folder is really for design templates, not Velocity macro=20 libraries. You might be able to set up a repository which is mapped to=20 the templates directory as well so that you could then do: repository:templates:/library.vm I'm not exactly sure what you are trying to do, but perhaps this will=20 get you going in the right direction. Sincerely, Anthony Eden ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click