Class TemplateConfiguration
- java.lang.Object
-
- com.trivago.cluecumber.engine.rendering.pages.templates.TemplateConfiguration
-
@Singleton public class TemplateConfiguration extends Object
The base configuration for the Freemarker template engine.
-
-
Constructor Summary
Constructors Constructor Description TemplateConfiguration()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplategetTemplate(String templateName)Retrieve a template by template name.voidinit(String basePath)Initialize Freemarker.
-
-
-
Method Detail
-
init
public void init(String basePath)
Initialize Freemarker.- Parameters:
basePath- The base path for the templates.
-
getTemplate
public freemarker.template.Template getTemplate(String templateName) throws CluecumberException
Retrieve a template by template name.- Parameters:
templateName- The template name without file extension.- Returns:
- The
Templateinstance. - Throws:
CluecumberException- Thrown on missing or wrong templates.s
-
-