Package org.jbake.template
Class DelegatingTemplateEngine
- java.lang.Object
-
- org.jbake.template.AbstractTemplateEngine
-
- org.jbake.template.DelegatingTemplateEngine
-
public class DelegatingTemplateEngine extends AbstractTemplateEngine
A template which is responsible for delegating to a supported template engine, based on the file extension.
-
-
Field Summary
-
Fields inherited from class org.jbake.template.AbstractTemplateEngine
config, db, extractors
-
-
Constructor Summary
Constructors Constructor Description DelegatingTemplateEngine(org.apache.commons.configuration2.CompositeConfiguration config, ContentStore db, java.io.File destination, java.io.File templatesPath)Deprecated.DelegatingTemplateEngine(ContentStore db, JBakeConfiguration config)
-
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
-
DelegatingTemplateEngine
@Deprecated public DelegatingTemplateEngine(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
-
DelegatingTemplateEngine
public DelegatingTemplateEngine(ContentStore db, JBakeConfiguration config)
-
-
Method Detail
-
renderDocument
public void renderDocument(TemplateModel model, java.lang.String templateName, java.io.Writer writer) throws RenderingException
- Specified by:
renderDocumentin classAbstractTemplateEngine- Throws:
RenderingException
-
-