Class ControlPanelRenderer

java.lang.Object
io.micronaut.controlpanel.ui.ControlPanelRenderer

@Internal @Singleton public final class ControlPanelRenderer extends Object
Renders the control panel's bundled Handlebars templates without using the host application's Micronaut Views renderer.
  • Constructor Details

    • ControlPanelRenderer

      public ControlPanelRenderer(@Named("controlPanel") com.github.jknack.handlebars.Handlebars handlebars)
  • Method Details

    • render

      public String render(String template, Object model)
      Renders a bundled Control Panel Handlebars template.
      Parameters:
      template - The classpath-relative template name without the .hbs suffix
      model - The data model supplied to the template
      Returns:
      The rendered HTML