public interface ITemplateEngine
Represents a template engine that transforms template and data pair into resulting output (usually HTML).
Modifier and Type | Method and Description |
---|---|
void |
addTemplate(java.lang.String key,
java.lang.String template,
com.aspose.ms.System.Type modelType)
Adds the template to the template collection.
|
java.lang.String |
compile(java.lang.String key,
java.lang.Object model)
Transforms the template with the given key and model object to output.
|
void addTemplate(java.lang.String key, java.lang.String template, com.aspose.ms.System.Type modelType)
Adds the template to the template collection.
key
- Key for the template in the template collection.template
- Template content.modelType
- Type of a model object for the template.java.lang.String compile(java.lang.String key, java.lang.Object model)
Transforms the template with the given key and model object to output.
key
- Key for the template in the template collection.model
- Model object with data for transformation.String
.