public class MustacheEngineAdapter extends Object implements TemplatingEngineAdapter
| Constructor and Description |
|---|
MustacheEngineAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
compileTemplate(TemplatingExecutor executor,
Map<String,Object> bundle,
String templateFile)
Compiles a template into a string
|
Reader |
findTemplate(TemplatingExecutor generator,
String name) |
com.samskivert.mustache.Mustache.Compiler |
getCompiler() |
String[] |
getFileExtensions() |
String |
getIdentifier()
Provides an identifier used to load the adapter.
|
void |
setCompiler(com.samskivert.mustache.Mustache.Compiler compiler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlesFile, templateExistspublic String getIdentifier()
getIdentifier in interface TemplatingEngineAdapterpublic String compileTemplate(TemplatingExecutor executor, Map<String,Object> bundle, String templateFile) throws IOException
compileTemplate in interface TemplatingEngineAdapterexecutor - From where we can fetch the templates content (e.g. an instance of DefaultGenerator)bundle - The map of values to pass to the templatetemplateFile - The name of the template (e.g. model.mustache )IOException - an error occurred in the template processingpublic Reader findTemplate(TemplatingExecutor generator, String name)
public com.samskivert.mustache.Mustache.Compiler getCompiler()
public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
public String[] getFileExtensions()
getFileExtensions in interface TemplatingEngineAdapterCopyright © 2021. All rights reserved.