public class PlainTextTemplateRenderer extends AbstractRenderer
MODEL_ATTRIBUTE
Constructor and Description |
---|
PlainTextTemplateRenderer()
Deprecated.
since 5.0.2, use
PlainTextTemplateRenderer(RenderingEngine) |
PlainTextTemplateRenderer(RenderingEngine renderingEngine) |
Modifier and Type | Method and Description |
---|---|
protected Map |
newContext()
Create a new context object which is a map.
|
protected void |
onRender(javax.jcr.Node content,
RenderableDefinition definition,
RenderingContext renderingCtx,
Map<String,Object> ctx,
String templateScript)
Finally execute the rendering.
|
protected String |
resolveTemplateScript(javax.jcr.Node content,
RenderableDefinition definition,
RenderingModel<?> model,
String actionResult)
Hook-method to be overriden when required.
|
addContextAttribute, getAggregationStateSafely, getContentType, getContentType, getContextAttributes, getMainContentSafely, getRenderingEngine, newModel, newModel, render, restoreContext, saveAttribute, saveContextState, setContentType, setContextAttribute, setContextAttributes, setupContext, wrapNodeForModel, wrapNodeForTemplate
@Deprecated public PlainTextTemplateRenderer()
PlainTextTemplateRenderer(RenderingEngine)
@Inject public PlainTextTemplateRenderer(RenderingEngine renderingEngine)
protected String resolveTemplateScript(javax.jcr.Node content, RenderableDefinition definition, RenderingModel<?> model, String actionResult)
AbstractRenderer
resolveTemplateScript
in class AbstractRenderer
definition
- reference templateScript is retrieved fromprotected void onRender(javax.jcr.Node content, RenderableDefinition definition, RenderingContext renderingCtx, Map<String,Object> ctx, String templateScript) throws RenderException
AbstractRenderer
onRender
in class AbstractRenderer
RenderException
protected Map newContext()
AbstractRenderer
newContext
in class AbstractRenderer
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.