Package org.jbake.template
Class GroovyTemplateEngine
- java.lang.Object
-
- org.jbake.template.AbstractTemplateEngine
-
- org.jbake.template.GroovyTemplateEngine
-
public class GroovyTemplateEngine extends AbstractTemplateEngine
Renders documents using a Groovy template engine. Depending on the file extension of the template, the template engine will either be aSimpleTemplateEngine, or anXmlTemplateEngine(.gxml).
-
-
Field Summary
-
Fields inherited from class org.jbake.template.AbstractTemplateEngine
config, db, extractors
-
-
Constructor Summary
Constructors Constructor Description GroovyTemplateEngine(org.apache.commons.configuration2.CompositeConfiguration config, ContentStore db, java.io.File destination, java.io.File templatesPath)Deprecated.GroovyTemplateEngine(JBakeConfiguration config, ContentStore db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrenderDocument(TemplateModel model, java.lang.String templateName, java.io.Writer writer)
-
-
-
Constructor Detail
-
GroovyTemplateEngine
@Deprecated public GroovyTemplateEngine(org.apache.commons.configuration2.CompositeConfiguration config, ContentStore db, java.io.File destination, java.io.File templatesPath)Deprecated.- Parameters:
config- theCompositeConfigurationof jbakedb- theContentStoredestination- the destination pathtemplatesPath- the templates path
-
GroovyTemplateEngine
public GroovyTemplateEngine(JBakeConfiguration config, ContentStore db)
-
-
Method Detail
-
renderDocument
public void renderDocument(TemplateModel model, java.lang.String templateName, java.io.Writer writer) throws RenderingException
- Specified by:
renderDocumentin classAbstractTemplateEngine- Throws:
RenderingException
-
-