2006/11/21 09:32 Developer
freemarker 실전1 : Entry Point with Configuration
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());
TAG FreeMarker