public interface CompiledTemplate
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CompiledTemplate.Factory
A factory interface for constructing a
CompiledTemplate. |
| Modifier and Type | Method and Description |
|---|---|
SanitizedContent.ContentKind |
kind()
The content kind of the compiled template, used for making runtime content escaping decisions.
|
RenderResult |
render(LoggingAdvisingAppendable appendable,
RenderContext context)
Renders the template.
|
RenderResult render(LoggingAdvisingAppendable appendable, RenderContext context) throws IOException
appendable - The output targetcontext - The rendering contextRenderResult.done() if rendering has completed successfully, RenderResult.limited() if rendering was paused because the appendable reported AdvisingAppendable.softLimitReached() or RenderResult.continueAfter(java.util.concurrent.Future) if rendering encountered a future
that was not done.IOException - If the output stream throws an exception. This is a fatal error and
rendering cannot be continued.@Nullable SanitizedContent.ContentKind kind()
null if this template is non-strict.