Java 类org.springframework.boot.autoconfigure.mustache.MustacheResourceTemplateLoader 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MustacheWebIntegrationTests.java   
@Bean
public MustacheViewResolver viewResolver() {
    MustacheViewResolver resolver = new MustacheViewResolver();
    resolver.setPrefix("classpath:/mustache-templates/");
    resolver.setSuffix(".html");
    resolver.setCompiler(
            Mustache.compiler().withLoader(new MustacheResourceTemplateLoader(
                    "classpath:/mustache-templates/", ".html")));
    return resolver;
}
项目:spring-boot-concourse    文件:MustacheWebIntegrationTests.java   
@Bean
public MustacheViewResolver viewResolver() {
    MustacheViewResolver resolver = new MustacheViewResolver();
    resolver.setPrefix("classpath:/mustache-templates/");
    resolver.setSuffix(".html");
    resolver.setCompiler(
            Mustache.compiler().withLoader(new MustacheResourceTemplateLoader(
                    "classpath:/mustache-templates/", ".html")));
    return resolver;
}
项目:contestparser    文件:MustacheWebIntegrationTests.java   
@Bean
public MustacheViewResolver viewResolver() {
    MustacheViewResolver resolver = new MustacheViewResolver();
    resolver.setPrefix("classpath:/mustache-templates/");
    resolver.setSuffix(".html");
    resolver.setCompiler(
            Mustache.compiler().withLoader(new MustacheResourceTemplateLoader(
                    "classpath:/mustache-templates/", ".html")));
    return resolver;
}