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 themodelprior to render the section.voidwrite(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 rendererto usetemplateName- the name of the templatemodel- the initial model
-
-
Method Details