Re: Where to put Velocity Macros while providing an extension
Björn Berg <[email protected]> Sun, 24 Jan 2016 18:11:19 +0100
| Newsgroups | gmane.comp.java.roller.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I think I was not precise enough with my question. I know how to assemble my plugin and bring it to run inside Roller. For more comfort in templates I want to provide Velocity macros (http://people.apache.org/~henning/velocity/html/ch07.html) with my plugin and was looking for a way how to make them available easily. It seems that roller-custom.vm inside WEB-INF/velocity is the place to put custom Velocity macros but that would mean one has to edit macros itself and the cannot be automatically provided by the plugin. Is there some Classloader magic how this can be done? Björn > Am 24.01.2016 um 01:36 schrieb Kohei Nozaki <[email protected]>: > > Hi Björn, > > You can put your JAR file which contains your extension/plugin classes, into WEB-INF/lib inside your Roller deployment. > > Don't forget to list FQCN of your custom classes in "rendering.pageModels" entry of roller-custom.properties. > > Also this Ant script may help you making custom Roller WAR file which contains your additional extension/plugin JARs: > https://github.com/lbtc-xxx/rollersetup > > Hope this helps, > > Kohei > > On 1/24/16 01:36, Björn Berg wrote: >> Hi, >> >> I am writing my first extension/plugin of a PageModel for Apache Roller. This works very well. >> >> But for a better convenience in page templates I want to provide Macros for the Velocity engine in my JAR file. Where do I have to put them and make them available so they can be used in Roller? >> >> Kind regards, >> Björn >> Björn Berg Mobil: (0163) 699 23 74 E-Mail: [email protected]
signature.asc
(application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJWpQW4AAoJEOj6oZ1j/58Niq0IAIR94xamUmqknult2+e3YL/s AfyUR7mPm3+LpkFpHKgurD2WWAvNn4MnPUT7aOf3/AO957lWSjP00smAWj3uo+yj 8yvsUl6axJxSUETlQdh2QaQNuJNgqQuBcEsbLUfwaeMwmqLfGqhVVo6qCFtyHHrX RvpBplNrKVlK7XCFUzNi11DVuwyQ/XAjnesH2UvUMul1gTRAn2axgQYdogEUGE4r 4U5Lk+vN03khQwHstp3BzLpXQUQQkphGzSEd62ZefzzmCp+rEwBKcnXDpIVRqAYK 9rg51HbUUNuS0ChsLOiRunaBfS/T+zEfPkX64UB/ddLVBaAyVDjE+P1v6Byd0yQ= =vV1v -----END PGP SIGNATURE-----