Package | Description |
---|---|
com.mitchellbosecke.pebble |
Modifier and Type | Method and Description |
---|---|
PebbleEngine.Builder |
PebbleEngine.Builder.addEscapingStrategy(String name,
EscapingStrategy strategy)
Adds an escaping strategy to the built-in escaper extension.
|
PebbleEngine.Builder |
PebbleEngine.Builder.allowGetClass(boolean allowGetClass)
Enable/disable getClass access for attributes
|
PebbleEngine.Builder |
PebbleEngine.Builder.autoEscaping(boolean autoEscaping)
Sets whether or not escaping should be performed automatically.
|
PebbleEngine.Builder |
PebbleEngine.Builder.cacheActive(boolean cacheActive)
Enable/disable all caches, i.e.
|
PebbleEngine.Builder |
PebbleEngine.Builder.defaultEscapingStrategy(String strategy)
Sets the default escaping strategy of the built-in escaper extension.
|
PebbleEngine.Builder |
PebbleEngine.Builder.defaultLocale(Locale defaultLocale)
Sets the Locale passed to all templates constructed by this PebbleEngine.
|
PebbleEngine.Builder |
PebbleEngine.Builder.executorService(ExecutorService executorService)
Sets the executor service which is required if using one of Pebble's multithreading features
such as the "parallel" tag.
|
PebbleEngine.Builder |
PebbleEngine.Builder.extension(Extension... extensions)
Adds an extension, can be safely invoked several times to add different extensions.
|
PebbleEngine.Builder |
PebbleEngine.Builder.greedyMatchMethod(boolean greedyMatchMethod)
Enable/disable greedy matching mode for finding java method.
|
PebbleEngine.Builder |
PebbleEngine.Builder.literalDecimalTreatedAsInteger(boolean literalDecimalTreatedAsInteger)
Enable/disable treat literal decimal as Integer.
|
PebbleEngine.Builder |
PebbleEngine.Builder.loader(Loader<?> loader)
Sets the loader used to find templates.
|
PebbleEngine.Builder |
PebbleEngine.Builder.newLineTrimming(boolean enableNewLineTrimming)
Changes the
newLineTrimming setting of the PebbleEngine. |
PebbleEngine.Builder |
PebbleEngine.Builder.strictVariables(boolean strictVariables)
Changes the
strictVariables setting of the PebbleEngine. |
PebbleEngine.Builder |
PebbleEngine.Builder.syntax(Syntax syntax)
Sets the syntax to be used.
|
PebbleEngine.Builder |
PebbleEngine.Builder.tagCache(PebbleCache<CacheKey,Object> tagCache)
Sets the cache used by the "cache" tag.
|
PebbleEngine.Builder |
PebbleEngine.Builder.templateCache(PebbleCache<Object,PebbleTemplate> templateCache)
Sets the cache used by the engine to store compiled PebbleTemplate instances.
|
Copyright © 2019. All rights reserved.