Configuration클래스

- Main entry point into the FreeMarker API
- this class encapsulates the various configuration parameters
- This object is not synchronized.

http://freemarker.sourceforge.net/docs/api/freemarker/template/Configuration.html



Configuration클래스 샘플 코드

Configuration cfg = new Configuration();
// Specify the data source where the template files come from.
// Here I set a file directory for it:
cfg.setDirectoryForTemplateLoading(
        new File("/where/you/store/templates"));
// Specify how templates will see the data model. This is an advanced topic...
// but just use this:
cfg.setObjectWrapper(new DefaultObjectWrapper());  

Posted by ologist
 TAG

블로그 이미지
ologist

공지사항

Yesterday170
Today60
Total33,501

달력

 « |  » 2012.02
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

최근에 받은 트랙백

글 보관함