Is it possible to avoid template reloading?
JJoe <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hi FreemarkerUsers!
I've got a peace of code that is often called while my app runs:
Configuration cfg = new Configuration();
cfg.setDirectoryForTemplateLoading(new File ("/home/joe/templates/"));
cfg.getTemplate("myTemplate.ftl","UTF-8").process(freemarkerDataModel,
osWriter);
Is it possible to tell freemarker that the template
"/home/joe/templates/myTemplate.ftl"
is only read once?
I know that freemarker caches the template but it will be reloade if the
template files is changed on the file system.
I want to avoid that the running application will be affected by a changed
template which could contain errors.
Thanks in advance
Joe
--
View this message in context: http://www.nabble.com/Is-it-possible-to-avoid-template-reloading--tp25260527p25260527.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july