public static class HandlebarsModule.Builder extends Object
Handlebars instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
com.github.jknack.handlebars.Handlebars |
build(Environment env)
Creates a handlebars instance.
|
HandlebarsModule.Builder |
setTemplateCache(com.github.jknack.handlebars.cache.TemplateCache cache)
Set template cache.
|
HandlebarsModule.Builder |
setTemplateLoader(com.github.jknack.handlebars.io.TemplateLoader loader)
Template loader to use.
|
HandlebarsModule.Builder |
setTemplatesPath(Path templatesPath)
Template path.
|
HandlebarsModule.Builder |
setTemplatesPath(String templatesPathString)
Template path.
|
@Nonnull public HandlebarsModule.Builder setTemplateCache(@Nonnull com.github.jknack.handlebars.cache.TemplateCache cache)
cache - Template cache.@Nonnull public HandlebarsModule.Builder setTemplatesPath(@Nonnull String templatesPathString)
templatesPathString - Set template path.@Nonnull public HandlebarsModule.Builder setTemplatesPath(@Nonnull Path templatesPath)
templatesPath - Set template path.@Nonnull public HandlebarsModule.Builder setTemplateLoader(@Nonnull com.github.jknack.handlebars.io.TemplateLoader loader)
loader - Template loader to use.@Nonnull public com.github.jknack.handlebars.Handlebars build(@Nonnull Environment env)
env - Application environment.Copyright © 2020. All rights reserved.