Class MustacheSection

java.lang.Object
io.spring.initializr.generator.io.text.MustacheSection
All Implemented Interfaces:
Section

public class MustacheSection extends Object implements Section
Section that uses a MustacheTemplateRenderer. Renders the content with a newline at the end.
Author:
Madhura Bhave
  • Constructor Details

  • Method Details

    • write

      public void write(PrintWriter writer)
      Description copied from interface: Section
      Write the content of the section to the specified writer.
      Specified by:
      write in interface Section
      Parameters:
      writer - the writer to use
    • resolveModel

      protected Map<String,Object> resolveModel(Map<String,Object> model)
      Resolve the model prior to render the section.
      Parameters:
      model - the current model
      Returns:
      the model to use to render this section (never null)