public class PebbleEngine extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PebbleEngine.Builder
A builder to configure and construct an instance of a PebbleEngine.
|
Modifier and Type | Method and Description |
---|---|
Locale |
getDefaultLocale()
Returns the default locale
|
EvaluationOptions |
getEvaluationOptions() |
ExecutorService |
getExecutorService()
Returns the executor service
|
ExtensionRegistry |
getExtensionRegistry()
Returns the extension registry.
|
PebbleTemplate |
getLiteralTemplate(String templateName)
Loads, parses, and compiles a template using a StringLoader into an instance of PebbleTemplate
and returns this instance.
|
Loader<?> |
getLoader()
Returns the loader
|
Syntax |
getSyntax()
Returns the syntax which is used by this PebbleEngine.
|
PebbleCache<CacheKey,Object> |
getTagCache()
Returns the tag cache
|
PebbleTemplate |
getTemplate(String templateName)
Loads, parses, and compiles a template into an instance of PebbleTemplate and returns this
instance.
|
PebbleCache<Object,PebbleTemplate> |
getTemplateCache()
Returns the template cache
|
boolean |
isStrictVariables()
Returns the strict variables setting
|
public PebbleTemplate getTemplate(String templateName)
templateName
- The name of the templatepublic PebbleTemplate getLiteralTemplate(String templateName)
templateName
- The name of the templatepublic Loader<?> getLoader()
public PebbleCache<Object,PebbleTemplate> getTemplateCache()
public boolean isStrictVariables()
public Locale getDefaultLocale()
public ExecutorService getExecutorService()
public Syntax getSyntax()
public ExtensionRegistry getExtensionRegistry()
public PebbleCache<CacheKey,Object> getTagCache()
public EvaluationOptions getEvaluationOptions()
Copyright © 2020. All rights reserved.