Package sonia.scm.template
Class Templates
java.lang.Object
sonia.scm.template.Templates
Util class for the template framework of scm-manager.
- Since:
- 1.22
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
renderFileTemplate
(TemplateEngineFactory factory, File template, Writer ouput, Object env) Renders the given template file with theTemplateEngine
which is associated to extension of the file.
-
Method Details
-
renderFileTemplate
public static void renderFileTemplate(TemplateEngineFactory factory, File template, Writer ouput, Object env) throws IOException Renders the given template file with theTemplateEngine
which is associated to extension of the file. If there is noTemplateEngine
for the extension of the file, then the defaultTemplateEngine
(TemplateEngineFactory.getDefaultEngine()
) is used.- Parameters:
factory
- template engine factorytemplate
- file with template contentouput
- writer for the template outputenv
- environment for the template- Throws:
IOException
-