public interface PebbleTemplate
PebbleEngine. A template
by itself is stateless and can therefore be re-used over and over to provide different outputs depending
on the variables that are provided at the time of evaluation.| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(Writer writer)
Evaluate the template without any provided variables.
|
void |
evaluate(Writer writer,
Locale locale)
Evaluate the template with a particular locale but without any provided variables.
|
void |
evaluate(Writer writer,
Map<String,Object> context)
Evaluate the template with a set of variables and the default locale provided by the
PebbleEngine |
void |
evaluate(Writer writer,
Map<String,Object> context,
Locale locale)
Evaluate the template with a particular locale and a set of variables.
|
String |
getName()
Returns the name of the template
|
void evaluate(Writer writer) throws PebbleException, IOException
PebbleEngine.writer - The results of the evaluation are written to this writer.PebbleException - An exception with the evaluation of the templateIOException - An IO exception during the evaluationvoid evaluate(Writer writer, Locale locale) throws PebbleException, IOException
writer - The results of the evaluation are written to this writer.locale - The locale used during the evaluation of the template.PebbleException - An exception with the evaluation of the templateIOException - An IO exception during the evaluationvoid evaluate(Writer writer, Map<String,Object> context) throws PebbleException, IOException
PebbleEnginewriter - The results of the evaluation are written to this writer.context - The variables used during the evaluation of the template.PebbleException - An exception with the evaluation of the templateIOException - An IO exception during the evaluationvoid evaluate(Writer writer, Map<String,Object> context, Locale locale) throws PebbleException, IOException
writer - The results of the evaluation are written to this writer.context - The variables used during the evaluation of the template.locale - The locale used during the evaluation of the template.PebbleException - An exception with the evaluation of the templateIOException - An IO exception during the evaluationString getName()
Copyright © 2016. All rights reserved.