public class Renderer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Renderer.ModelRenderingConfig |
| Constructor and Description |
|---|
Renderer(ContentStore db,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config)
Creates a new instance of Renderer with supplied references to folders.
|
| Modifier and Type | Method and Description |
|---|---|
void |
render(Map<String,Object> content)
Render the supplied content to a file.
|
void |
renderArchive(String archiveFile)
Render an archive file using the supplied content.
|
void |
renderFeed(String feedFile)
Render an XML feed file using the supplied content.
|
void |
renderIndex(String indexFile)
Render an index file using the supplied content.
|
void |
renderSitemap(String sitemapFile)
Render an XML sitemap file using the supplied content.
|
int |
renderTags(String tagPath)
Render tag files using the supplied content.
|
public Renderer(ContentStore db, File destination, File templatesPath, org.apache.commons.configuration.CompositeConfiguration config)
db - The database holding the contentdestination - The destination foldertemplatesPath - The templates folderconfig - public void render(Map<String,Object> content) throws Exception
content - The content to renderDocumentExceptionpublic void renderIndex(String indexFile) throws Exception
indexFile - The name of the output fileExceptionpublic void renderSitemap(String sitemapFile) throws Exception
Exceptionpublic void renderFeed(String feedFile) throws Exception
feedFile - The name of the output fileExceptionpublic void renderArchive(String archiveFile) throws Exception
archiveFile - The name of the output fileExceptionCopyright © 2016. All rights reserved.