public class OfflineContext extends BaseSiteMeshContext
SiteMeshContext implementation specifically for use
in offline site generation.
Reads resources (content, decorators, includes, etc) from the passed in
Directory implementation. This could be backed by a filesystem, memory,
or a custom source/target.
SiteMeshOffline,
Directory,
SiteMeshContext| Constructor and Description |
|---|
OfflineContext(ContentProcessor contentProcessor,
Directory baseDirectory,
String path) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decorate(String decoratorPath,
Content content,
Writer out) |
String |
getPath()
Get path of the page currently being displayed.
|
decorate, getContentProcessor, getContentToMergepublic OfflineContext(ContentProcessor contentProcessor, Directory baseDirectory, String path)
public String getPath()
SiteMeshContextprotected void decorate(String decoratorPath, Content content, Writer out) throws IOException
decorate in class BaseSiteMeshContextIOExceptionCopyright © 2015. All Rights Reserved.