Class TemplateExecutor

java.lang.Object
org.springframework.shell.style.TemplateExecutor

public class TemplateExecutor extends Object
Template executor which knows to use styling.
  • Constructor Details

    • TemplateExecutor

      public TemplateExecutor(ThemeResolver themeResolver)
  • Method Details

    • render

      public org.jline.utils.AttributedString render(String template, Map<String,Object> attributes)
      Render template with a given attributes.
      Parameters:
      template - the ST template
      attributes - the ST template attributes
      Returns:
      a rendered template
    • renderGroup

      public org.jline.utils.AttributedString renderGroup(String template, Map<String,Object> attributes)
      Render template group with a given attributes expecting to find instance named main.
      Parameters:
      template - the ST template
      attributes - the ST template attributes
      Returns:
      a rendered template