In package com.mitchellbosecke.pebble
public class PebbleEngine extends Object
The main class used for compiling templates. The PebbleEngine is responsible for delegating responsibility to the lexer, parser, compiler, and template cache.
Methods
public PebbleTemplate getTemplate(String templateName)
Loads, parses, and compiles a template into an instance of PebbleTemplate and returns this instance.
-
String templateName
The name of the template
public PebbleTemplate getLiteralTemplate(String templateName)
Loads, parses, and compiles a template using a StringLoader into an instance of PebbleTemplate and returns this instance.
-
String templateName
The name of the template
public PebbleCache<Object, PebbleTemplate> getTemplateCache()
Returns the template cache
- No parameters
public boolean isStrictVariables()
Returns the strict variables setting
- No parameters
public Locale getDefaultLocale()
Returns the default locale
- No parameters
public ExecutorService getExecutorService()
Returns the executor service
- No parameters
public Syntax getSyntax()
Returns the syntax which is used by this PebbleEngine.
- No parameters
public ExtensionRegistry getExtensionRegistry()
Returns the extension registry.
- No parameters