Hi Matthias, I'd start digging from Utils#parseTemplate ( https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... ). Hope this helps, Marius On Mon, Dec 2, 2013 at 11:08 PM, Matthias Wegner <[email protected]> wrote:
Hello Devs,
i try to use a custom template in a macro and didn't get the template loaded. I tried System.getProperty("user.dir") with "webapps/xwiki/templates/custom.vm". I always get the message "unable to find resouce in resource loader". Can you give me a hint how i load a correct VelocityEngine to load a template in the "templates"-directory.
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-load-VelocityEngine-in-Java-for-a-c... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs