Loading FTL templates from JAR in maven
Vijay <[email protected]> Tue, 24 Dec 2013 14:44:43 -0800 (PST)
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am a newbie to FTL and requires your help. We are building a site which has various modules with war's and jar's and trying to use FTL for front end rendering. The FTL templates are available as JAR(with different folders inside) in repository and I have to include it as dependency in one of my pom.xml The ControllerServlet(which extends FreemarkerServlet) is available in one of my JAR module and JSP's are in WAR file 1) Do I need to include the template dependency in JAR or in WAR 2) I have included the dependency in my JAR module and tried to read the templates by mentioning config.setClassForTemplateLoading(getClass(), "/") in my controller. But I am not able to read the templates. Can you please guide me on configuration to load the template in ControllerServlet. If I need to include the dependency in WAR, how do I use FTL to render. Please guide me. -- View this message in context: http://freemarker.624813.n4.nabble.com/Loading-FTL-templates-from-JAR-in-maven-tp4654896.html Sent from the freemarker-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk