public class Renderer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Renderer.ModelRenderingConfig |
| Constructor and Description |
|---|
Renderer(ContentStore db,
java.io.File destination,
java.io.File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config)
Deprecated.
Use
Renderer(ContentStore, JBakeConfiguration) instead.
Creates a new instance of Renderer with supplied references to folders. |
Renderer(ContentStore db,
java.io.File destination,
java.io.File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config,
DelegatingTemplateEngine renderingEngine)
Deprecated.
Use
Renderer(ContentStore, JBakeConfiguration, DelegatingTemplateEngine) instead.
Creates a new instance of Renderer with supplied references to folders and the instance of DelegatingTemplateEngine to use. |
Renderer(ContentStore db,
JBakeConfiguration config)
Creates a new instance of Renderer with supplied references to folders.
|
Renderer(ContentStore db,
JBakeConfiguration config,
DelegatingTemplateEngine renderingEngine)
Creates a new instance of Renderer with supplied references to folders and the instance of DelegatingTemplateEngine to use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
render(java.util.Map<java.lang.String,java.lang.Object> content)
Render the supplied content to a file.
|
void |
renderArchive(java.lang.String archiveFile)
Render an archive file using the supplied content.
|
void |
renderFeed(java.lang.String feedFile)
Render an XML feed file using the supplied content.
|
void |
renderIndex(java.lang.String indexFile)
Render an index file using the supplied content.
|
void |
renderIndexPaging(java.lang.String indexFile) |
void |
renderSitemap(java.lang.String sitemapFile)
Render an XML sitemap file using the supplied content.
|
int |
renderTags(java.lang.String tagPath)
Render tag files using the supplied content.
|
@Deprecated public Renderer(ContentStore db, java.io.File destination, java.io.File templatesPath, org.apache.commons.configuration.CompositeConfiguration config)
Renderer(ContentStore, JBakeConfiguration) instead.
Creates a new instance of Renderer with supplied references to folders.db - The database holding the contentdestination - The destination foldertemplatesPath - The templates folderconfig - Project configuration@Deprecated public Renderer(ContentStore db, java.io.File destination, java.io.File templatesPath, org.apache.commons.configuration.CompositeConfiguration config, DelegatingTemplateEngine renderingEngine)
Renderer(ContentStore, JBakeConfiguration, DelegatingTemplateEngine) instead.
Creates a new instance of Renderer with supplied references to folders and the instance of DelegatingTemplateEngine to use.db - The database holding the contentdestination - The destination foldertemplatesPath - The templates folderconfig - Project configurationrenderingEngine - The instance of DelegatingTemplateEngine to usepublic Renderer(ContentStore db, JBakeConfiguration config)
db - The database holding the contentconfig - Project configurationpublic Renderer(ContentStore db, JBakeConfiguration config, DelegatingTemplateEngine renderingEngine)
db - The database holding the contentconfig - The application specific configurationrenderingEngine - The instance of DelegatingTemplateEngine to usepublic void render(java.util.Map<java.lang.String,java.lang.Object> content)
throws java.lang.Exception
content - The content to renderDocumentjava.lang.Exception - if IOException or SecurityException are raisedpublic void renderIndex(java.lang.String indexFile)
throws java.lang.Exception
indexFile - The name of the output filejava.lang.Exception - if IOException or SecurityException are raisedpublic void renderIndexPaging(java.lang.String indexFile)
throws java.lang.Exception
java.lang.Exceptionpublic void renderSitemap(java.lang.String sitemapFile)
throws java.lang.Exception
sitemapFile - configuration for site mapjava.lang.Exception - if can't create correct default rendering configpublic void renderFeed(java.lang.String feedFile)
throws java.lang.Exception
feedFile - The name of the output filejava.lang.Exception - if default rendering configuration is not loaded correctlypublic void renderArchive(java.lang.String archiveFile)
throws java.lang.Exception
archiveFile - The name of the output filejava.lang.Exception - if default rendering configuration is not loaded correctlypublic int renderTags(java.lang.String tagPath)
throws java.lang.Exception
tagPath - The output pathjava.lang.Exception - if cannot render tags correctly