|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbake.app.Renderer
public class Renderer
Render output to a file.
| Constructor Summary | |
|---|---|
Renderer(File source,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config)
Creates a new instance of Renderer with supplied references to folders. |
|
Renderer(File source,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config,
List<Map<String,Object>> posts,
List<Map<String,Object>> pages)
Creates a new instance of Renderer with supplied references to folders. |
|
| Method Summary | |
|---|---|
void |
render(Map<String,Object> content)
Render the supplied content to a file. |
void |
renderArchive(List<Map<String,Object>> posts,
String archiveFile)
Render an archive file using the supplied content. |
void |
renderFeed(List<Map<String,Object>> posts,
String feedFile)
Render an XML feed file using the supplied content. |
void |
renderIndex(List<Map<String,Object>> posts,
String indexFile)
Render an index file using the supplied content. |
void |
renderTags(Map<String,List<Map<String,Object>>> tags,
String tagPath)
Render tag files using the supplied content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Renderer(File source,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config)
source - The source folderdestination - The destination foldertemplatesPath - The templates folder
public Renderer(File source,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config,
List<Map<String,Object>> posts,
List<Map<String,Object>> pages)
source - The source folderdestination - The destination foldertemplatesPath - The templates folderposts - The list of postspages - The list of pages| Method Detail |
|---|
public void render(Map<String,Object> content)
throws Exception
content - The content to render
Exception
public void renderIndex(List<Map<String,Object>> posts,
String indexFile)
posts - The content to renderindexFile - The name of the output file
public void renderFeed(List<Map<String,Object>> posts,
String feedFile)
posts - The content to renderfeedFile - The name of the output file
public void renderArchive(List<Map<String,Object>> posts,
String archiveFile)
posts - The content to renderarchiveFile - The name of the output file
public void renderTags(Map<String,List<Map<String,Object>>> tags,
String tagPath)
tags - The content to rendertagPath - The output path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||