Package com.jk.core.templates
Class JKTemplateProcessor
java.lang.Object
com.jk.core.templates.JKTemplateProcessor
This class is responsible for processing templates using FreeMarker.
 
It allows loading templates, populating them with provided data, and generating the resulting
- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKTemplateProcessorand initializes it. - 
Method Summary
 
- 
Constructor Details
- 
JKTemplateProcessor
public JKTemplateProcessor()This method constructs a newJKTemplateProcessorand initializes it. 
 - 
 - 
Method Details
- 
processTemplate
public String processTemplate(Map<String, String> templates, String nameToPreview, String templateText, Map<String, Object> params) This method processes the provided template text with the given parameters and returns the result.- Parameters:
 templates- Specifies a map containing templates to be loaded.nameToPreview- Specifies the name to assign to the preview template.templateText- Specifies the template text to be processed.params- Specifies the parameters to populate the template with.- Returns:
 - the generated content after processing the template.
 
 
 -