public interface CompiledTemplate
| Modifier and Type | Method and Description |
|---|---|
void |
render(Writer writer,
Map<String,Object> vars)
Renders the output of a compiled template.
|
void |
render(Writer writer,
Map<String,Object> vars,
String fragmentId)
Renders a part of a compiled template.
|
void render(Writer writer, Map<String,Object> vars)
writer - The output of the template will be written to the writer.vars - The variables that will be used during the template rendering.void render(Writer writer, Map<String,Object> vars, String fragmentId)
writer - The output of the template will be written to the writer.vars - The variables that will be used during the template rendering.fragmentId - Identifies the part of the template that should be rendered. In case the fragment is
null, the full template will be rendered.FragmentNotFoundException - if no fragment found with the specified non-null fragment id.Copyright © 2011–2018 Everit Kft.. All rights reserved.