public interface RenderingEngine
RenderingContext
and then calling on a Renderer
to
do the actual rendering.Modifier and Type | Method and Description |
---|---|
Boolean |
getAutoPopulateFromRequest() |
Boolean |
getRenderEmptyAreas() |
RenderingContext |
getRenderingContext()
Returns the current
RenderingContext . |
Collection<AbstractRenderingListener.RenderingListenerReturnCode> |
initListeners(OutputProvider out,
javax.servlet.http.HttpServletResponse response)
Inits listeners.
|
void |
render(javax.jcr.Node content,
Map<String,Object> contextObjects,
OutputProvider out)
Renders the content with its assigned template and exposes the given context objects to the template script.
|
void |
render(javax.jcr.Node content,
OutputProvider out)
Renders the content with its assigned template.
|
void |
render(javax.jcr.Node content,
RenderableDefinition definition,
Map<String,Object> contextObjects,
OutputProvider out)
Uses a specific
RenderableDefinition to render the content and exposes the given context objects to the
template script. |
void render(javax.jcr.Node content, OutputProvider out) throws RenderException
TemplateDefinitionAssignment
to resolve the template assigned to the node.content
- the node to renderout
- the OutputProvider to be used for output or null if the OutputProvider already set in RenderingContext should be usedRenderException
void render(javax.jcr.Node content, Map<String,Object> contextObjects, OutputProvider out) throws RenderException
TemplateDefinitionAssignment
to resolve the template assigned
to the node.content
- the node to rendercontextObjects
- objects to expose to the template scriptout
- the OutputProvider to be used for output or null if the OutputProvider already set in RenderingContext should be usedRenderException
void render(javax.jcr.Node content, RenderableDefinition definition, Map<String,Object> contextObjects, OutputProvider out) throws RenderException
RenderableDefinition
to render the content and exposes the given context objects to the
template script.content
- the node to rendercontextObjects
- objects to expose to the template scriptout
- the OutputProvider to be used for output or null if the OutputProvider already set in RenderingContext should be usedRenderException
RenderingContext getRenderingContext()
RenderingContext
.
FIXME is this the right place? should we use IoCCollection<AbstractRenderingListener.RenderingListenerReturnCode> initListeners(OutputProvider out, javax.servlet.http.HttpServletResponse response)
Boolean getRenderEmptyAreas()
Boolean getAutoPopulateFromRequest()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.