Class TemplateEngine
- java.lang.Object
-
- com.trivago.cluecumber.engine.rendering.pages.templates.TemplateEngine
-
@Singleton public class TemplateEngine extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateEngine.Template
-
Constructor Summary
Constructors Constructor Description TemplateEngine(TemplateConfiguration templateConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplategetTemplate(TemplateEngine.Template template)Retrieve a template byTemplateEngine.Templatetype.
-
-
-
Constructor Detail
-
TemplateEngine
@Inject public TemplateEngine(TemplateConfiguration templateConfiguration)
-
-
Method Detail
-
getTemplate
public freemarker.template.Template getTemplate(TemplateEngine.Template template) throws CluecumberException
Retrieve a template byTemplateEngine.Templatetype.- Parameters:
template- The template type.- Returns:
- The requested template.
- Throws:
CluecumberException- In case the template cannot be found.
-
-