Class JMustacheConfiguration


  • @Configuration
    public class JMustacheConfiguration
    extends Object
    • Constructor Detail

      • JMustacheConfiguration

        @Autowired
        public JMustacheConfiguration​(org.springframework.core.env.Environment environment)
    • Method Detail

      • mustacheCompiler

        @Bean
        public MustacheCompiler mustacheCompiler​(com.samskivert.mustache.Mustache.Compiler compiler,
                                                 MustacheTemplateLoader templateLoader)
        Build mustache compiler. This compiler use an instance of Mustache.Compiler under the hood.
        Parameters:
        compiler - JMustache compiler.
        templateLoader - Template loader.
        Returns:
        Mustache compiler implementation.
      • jMustacheCompiler

        @Bean
        public JMustacheCompilerFactoryBean jMustacheCompiler()
        Build original jmustache Mustache.Compiler that will be used internally to compile and render templates.
        Returns:
        JMustache compiler.