Class MustacheSection
java.lang.Object
io.spring.initializr.generator.io.text.MustacheSection
- All Implemented Interfaces:
Section
Section
that uses a MustacheTemplateRenderer
. Renders the content with
a newline at the end.- Author:
- Madhura Bhave
-
Constructor Summary
ConstructorsConstructorDescriptionMustacheSection
(MustacheTemplateRenderer templateRenderer, String templateName, Map<String, Object> model) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionresolveModel
(Map<String, Object> model) Resolve themodel
prior to render the section.void
write
(PrintWriter writer) Write the content of the section to the specifiedwriter
.
-
Constructor Details
-
MustacheSection
public MustacheSection(MustacheTemplateRenderer templateRenderer, String templateName, Map<String, Object> model) Create a new instance.- Parameters:
templateRenderer
- thetemplate renderer
to usetemplateName
- the name of the templatemodel
- the initial model
-
-
Method Details