public class MustacheSection extends Object implements Section
Section that uses a MustacheTemplateRenderer. Renders the content with
a newline at the end.| Constructor and Description |
|---|
MustacheSection(MustacheTemplateRenderer templateRenderer,
String templateName,
Map<String,Object> model)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
resolveModel(Map<String,Object> model)
Resolve the
model prior to render the section. |
void |
write(PrintWriter writer)
Write the content of the section to the specified
writer. |
public MustacheSection(MustacheTemplateRenderer templateRenderer, String templateName, Map<String,Object> model)
templateRenderer - the template renderer to
usetemplateName - the name of the templatemodel - the initial modelpublic void write(PrintWriter writer)
Sectionwriter.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.