public class PartialTemplateRendererImpl extends Object implements PartialTemplateRenderer
Constructor and Description |
---|
PartialTemplateRendererImpl(TypeCoercer typeCoercer) |
Modifier and Type | Method and Description |
---|---|
String |
render(Object object)
Renders an object, probably a
Block or component instance, to a string. |
Document |
renderAsDocument(Object object)
Renders an object to a
Document following the same rules as PartialTemplateRenderer.render(Object)
This method supposes any kind of initialization needed
was already done. |
public PartialTemplateRendererImpl(TypeCoercer typeCoercer)
public Document renderAsDocument(Object object)
PartialTemplateRenderer
Document
following the same rules as PartialTemplateRenderer.render(Object)
This method supposes any kind of initialization needed
was already done. CSS and JavaScript inclusions or importings are ignored.renderAsDocument
in interface PartialTemplateRenderer
object
- to render, a RenderCommand
, or coercible to oneDocument
.public String render(Object object)
PartialTemplateRenderer
Block
or component instance, to a string.
This method supposes any kind of initialization needed
was already done. CSS and JavaScript inclusions or importings are ignored.
The object must implement RenderCommand
or being able to be coerced to it
by TypeCoercer
.render
in interface PartialTemplateRenderer
object
- an object, probably a Block
or component instance or RenderCommand
.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.