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 |
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,
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.PebbleEngine |
getPebbleEngineString() |
protected com.mitchellbosecke.pebble.PebbleEngine |
getPebbleEngineTemplate() |
protected ISpincastConfig |
getSpincastConfig() |
protected com.mitchellbosecke.pebble.loader.Loader<String> |
getTemplateLoader() |
protected String |
parse(String htmlOrPath,
Map<String,Object> params,
boolean isTemplate,
Locale locale) |
@Inject public SpincastPebbleTemplatingEngine(ISpincastConfig spincastConfig)
protected ISpincastConfig getSpincastConfig()
protected com.mitchellbosecke.pebble.PebbleEngine getPebbleEngineString()
protected com.mitchellbosecke.pebble.PebbleEngine getPebbleEngineTemplate()
protected void addCommonLoaderFeatures(com.mitchellbosecke.pebble.PebbleEngine.Builder builder)
protected com.mitchellbosecke.pebble.loader.Loader<String> getTemplateLoader()
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, Map<String,Object> params, Locale locale)
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 ITemplatingEngineCopyright © 2016. All rights reserved.