public class SpincastPebbleTemplatingEngine extends Object implements ITemplatingEngine
| Constructor and Description |
|---|
SpincastPebbleTemplatingEngine(ISpincastConfig spincastConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonLoaderFeatures(com.mitchellbosecke.pebble.PebbleEngine.Builder builder) |
String |
createPlaceholder(String variable) |
String |
evaluate(String content,
IJsonObject jsonObject) |
String |
evaluate(String content,
IJsonObject jsonObject,
Locale locale) |
String |
evaluate(String content,
Map<String,Object> params) |
String |
evaluate(String content,
Map<String,Object> params,
Locale locale) |
String |
fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject jsonObject) |
String |
fromTemplate(String templatePath,
boolean isClasspathPath,
IJsonObject jsonObject,
Locale locale) |
String |
fromTemplate(String templatePath,
boolean isClasspathPath,
Map<String,Object> params) |
String |
fromTemplate(String templatePath,
boolean isClasspathPath,
Map<String,Object> params,
Locale locale) |
String |
fromTemplate(String templatePath,
IJsonObject jsonObject) |
String |
fromTemplate(String templatePath,
IJsonObject jsonObject,
Locale locale) |
String |
fromTemplate(String templatePath,
Map<String,Object> params) |
String |
fromTemplate(String templatePath,
Map<String,Object> params,
Locale locale) |
protected com.mitchellbosecke.pebble.loader.Loader<String> |
getClasspathTemplateLoader() |
protected com.mitchellbosecke.pebble.loader.Loader<String> |
getFileSystemTemplateLoader() |
protected com.mitchellbosecke.pebble.PebbleEngine |
getPebbleEngineString() |
protected com.mitchellbosecke.pebble.PebbleEngine |
getPebbleEngineTemplateClasspath() |
protected com.mitchellbosecke.pebble.PebbleEngine |
getPebbleEngineTemplateFileSystem() |
protected ISpincastConfig |
getSpincastConfig() |
protected String |
parse(String htmlOrPath,
Map<String,Object> params,
boolean isTemplate,
boolean isClasspathPath,
Locale locale) |
@Inject public SpincastPebbleTemplatingEngine(ISpincastConfig spincastConfig)
protected ISpincastConfig getSpincastConfig()
protected com.mitchellbosecke.pebble.PebbleEngine getPebbleEngineString()
protected com.mitchellbosecke.pebble.PebbleEngine getPebbleEngineTemplateClasspath()
protected com.mitchellbosecke.pebble.PebbleEngine getPebbleEngineTemplateFileSystem()
protected void addCommonLoaderFeatures(com.mitchellbosecke.pebble.PebbleEngine.Builder builder)
protected com.mitchellbosecke.pebble.loader.Loader<String> getClasspathTemplateLoader()
protected com.mitchellbosecke.pebble.loader.Loader<String> getFileSystemTemplateLoader()
public String evaluate(String content, Map<String,Object> params)
evaluate in interface ITemplatingEnginepublic String evaluate(String content, Map<String,Object> params, Locale locale)
evaluate in interface ITemplatingEnginepublic String evaluate(String content, IJsonObject jsonObject)
evaluate in interface ITemplatingEnginepublic String evaluate(String content, IJsonObject jsonObject, Locale locale)
evaluate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, Map<String,Object> params)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, IJsonObject jsonObject)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, IJsonObject jsonObject, Locale locale)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, Map<String,Object> params, Locale locale)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, boolean isClasspathPath, Map<String,Object> params)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, boolean isClasspathPath, Map<String,Object> params, Locale locale)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, boolean isClasspathPath, IJsonObject jsonObject)
fromTemplate in interface ITemplatingEnginepublic String fromTemplate(String templatePath, boolean isClasspathPath, IJsonObject jsonObject, Locale locale)
fromTemplate in interface ITemplatingEngineprotected String parse(String htmlOrPath, Map<String,Object> params, boolean isTemplate, boolean isClasspathPath, Locale locale)
public String createPlaceholder(String variable)
createPlaceholder in interface ITemplatingEngineCopyright © 2016. All rights reserved.