Class HandlebarsConfiguration
- java.lang.Object
-
- com.github.mjeanroy.springmvc.view.mustache.configuration.handlebars.HandlebarsConfiguration
-
@Configuration public class HandlebarsConfiguration extends Object
Configure handlebar template engine.
-
-
Constructor Summary
Constructors Constructor Description HandlebarsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlebarsFactoryBean
handlebarsCompiler()
Build originalHandlebars
compiler that will be used to compile and render templates.MustacheCompiler
mustacheCompiler(com.github.jknack.handlebars.Handlebars handlebars, MustacheTemplateLoader templateLoader)
Build mustache compiler.
-
-
-
Method Detail
-
mustacheCompiler
@Bean public MustacheCompiler mustacheCompiler(com.github.jknack.handlebars.Handlebars handlebars, MustacheTemplateLoader templateLoader)
Build mustache compiler. This compiler use an instance ofHandlebars
under the hood.- Parameters:
handlebars
- Handlebars instance.templateLoader
- Template loader.- Returns:
- Mustache compiler implementation.
-
handlebarsCompiler
@Bean public HandlebarsFactoryBean handlebarsCompiler()
Build originalHandlebars
compiler that will be used to compile and render templates.- Returns:
- Handlebars compiler.
-
-