Interface TemplateCompiler
-
- All Known Implementing Classes:
HandlebarsTemplateCompiler
public interface TemplateCompilerClass that handles the template compiling.- Since:
- 0.2.0
- Author:
- nandorholozsnyak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringcompileTemplate(String templatePath, TemplateData templateData)Compiles the template with the given template data.default TemplateCompilerMemoryStoregetMemoryStore()Returns the associated memory store.
-
-
-
Method Detail
-
compileTemplate
String compileTemplate(String templatePath, TemplateData templateData) throws DocumentGenerationException
Compiles the template with the given template data.If the template is not found an exception must be raised.
- Parameters:
templatePath- path to the template that the compiler can understand and work with.templateData- template data.- Returns:
- templated populated and compiled with the given template data.
- Throws:
DocumentGenerationException- when the template compiler occurs an error.
-
getMemoryStore
@NonNull default TemplateCompilerMemoryStore getMemoryStore()
Returns the associated memory store.- Since:
- 0.6.0
-
-