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, getContentToMerge
public OfflineContext(ContentProcessor contentProcessor, Directory baseDirectory, String path)
public String getPath()
SiteMeshContext
protected void decorate(String decoratorPath, Content content, Writer out) throws IOException
decorate
in class BaseSiteMeshContext
IOException
Copyright © 2015. All Rights Reserved.