Package org.thymeleaf.templateresolver

Examples of org.thymeleaf.templateresolver.FileTemplateResolver


        super(config, db, destination, templatesPath);
        initializeTemplateEngine();
    }

    private void initializeTemplateEngine() {
        templateResolver = new FileTemplateResolver();
        templateResolver.setPrefix(templatesPath.getAbsolutePath() + File.separatorChar);
        templateResolver.setCharacterEncoding(config.getString(Keys.TEMPLATE_ENCODING));
        templateEngine = new TemplateEngine();
        templateEngine.setTemplateResolver(templateResolver);
    }
View Full Code Here


    return handler;
  }
 
 
  private FileTemplateResolver fileTemplateResolver() {
    FileTemplateResolver resolver = new FileTemplateResolver();
    resolver.setCharacterEncoding("UTF-8");
    resolver.setTemplateMode("LEGACYHTML5");
    resolver.setCacheable(templateCacheEnabled);
    resolver.setOrder(2);
    return resolver;
  }
View Full Code Here

TOP

Related Classes of org.thymeleaf.templateresolver.FileTemplateResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.