public class SnippetContext extends Object
Constructor and Description |
---|
SnippetContext(SnippetParser parser) |
Modifier and Type | Method and Description |
---|---|
SnippetParser |
createChildParser() |
protected org.apache.velocity.tools.ToolManager |
createToolManaged() |
protected org.apache.velocity.context.Context |
createVelocityContext()
Creates a Velocity Context with all generic tools configured wit the site rendering context.
|
org.jsoup.nodes.Document |
document() |
String |
generateSnippetIdentifier() |
List<SnippetComponent<?>> |
getComponents() |
ISkinConfig |
getConfig() |
SnippetParser |
getParser() |
List<String> |
getSnippetPaths() |
String |
html() |
protected void |
mergeTemplate(SnippetComponent<?> component,
Writer writer) |
protected void |
render(SnippetComponent<?> component) |
protected String |
renderComponent(SnippetComponent<?> component) |
void |
reset() |
public SnippetContext(SnippetParser parser)
public void reset()
public String generateSnippetIdentifier()
public List<SnippetComponent<?>> getComponents()
public SnippetParser getParser()
public ISkinConfig getConfig()
public SnippetParser createChildParser()
public String html()
public org.jsoup.nodes.Document document()
protected void render(SnippetComponent<?> component)
protected String renderComponent(SnippetComponent<?> component)
protected void mergeTemplate(SnippetComponent<?> component, Writer writer)
protected org.apache.velocity.context.Context createVelocityContext()
protected org.apache.velocity.tools.ToolManager createToolManaged()
Copyright © 2012–2023 Friederich Christophe. All rights reserved.