Class JMustacheConfiguration
- java.lang.Object
-
- com.github.mjeanroy.springmvc.view.mustache.configuration.jmustache.JMustacheConfiguration
-
@Configuration public class JMustacheConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description JMustacheConfiguration(org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMustacheCompilerFactoryBean
jMustacheCompiler()
Build original jmustacheMustache.Compiler
that will be used internally to compile and render templates.MustacheCompiler
mustacheCompiler(com.samskivert.mustache.Mustache.Compiler compiler, MustacheTemplateLoader templateLoader)
Build mustache compiler.void
setCustomizers(Collection<JMustacheCustomizer> customizers)
-
-
-
Method Detail
-
setCustomizers
@Autowired(required=false) public void setCustomizers(Collection<JMustacheCustomizer> customizers)
-
mustacheCompiler
@Bean public MustacheCompiler mustacheCompiler(com.samskivert.mustache.Mustache.Compiler compiler, MustacheTemplateLoader templateLoader)
Build mustache compiler. This compiler use an instance ofMustache.Compiler
under the hood.- Parameters:
compiler
- JMustache compiler.templateLoader
- Template loader.- Returns:
- Mustache compiler implementation.
-
jMustacheCompiler
@Bean public JMustacheCompilerFactoryBean jMustacheCompiler()
Build original jmustacheMustache.Compiler
that will be used internally to compile and render templates.- Returns:
- JMustache compiler.
-
-