public ProcessadorFreemarkerSimples() {
   super();
   cfg = new Configuration();
   String s = cfg.getVersionNumber();
   // Specify the data source where the template files come from.
   cfg.setTemplateLoader(this);
   // Specify how templates will see the data-model.
   cfg.setObjectWrapper(new DefaultObjectWrapper());
   cfg.setWhitespaceStripping(true);
   cfg.setTagSyntax(Configuration.SQUARE_BRACKET_TAG_SYNTAX);
   cfg.setLocalizedLookup(false);
 }
Ejemplo n.º 2
0
 static {
   cfg = new Configuration();
   cfg.setObjectWrapper(ObjectWrapper.DEFAULT_WRAPPER);
   cfg.setClassForTemplateLoading(FreeMarkerUtil.class, "/");
   cfg.setTagSyntax(Configuration.AUTO_DETECT_TAG_SYNTAX);
 }
 {
   cfg.setTagSyntax(Configuration.AUTO_DETECT_TAG_SYNTAX);
 }