title: How to store compiled Freemarker Templates
body: <p>We have just started playing with Freemarker as UI template engine and the POC results are quite satisfactory and looks like we would start using it as our de facto UI processing framework instead of JSP.</p>
  
  <p>The real benefit we see here we can store Freemarker templates anywhere (e.g. jar files, file system directories, even database for that matter !).</p>
  
  <p>During POC, we did not see much performance issue but I was thinking if the templates can be pre-compiled and stored in file system / database for faster response on first hit or whenever there is a compiled cache-miss for a given template.</p>
  
  <p>Is it possible to get hold of binary structure (most probably it would be multi-node tree) of a compiled Template and serialize in file and vice-versa.</p>
  
  <p>Thanks in advance.</p>