Class ShellTemplate

java.lang.Object
io.mindspice.simplypages.builders.ShellTemplate
All Implemented Interfaces:
Component

public final class ShellTemplate extends Object implements Component
Wrapper around a compiled shell template with a dedicated content slot.

Renders full document HTML including doctype. Thread-safe as long as callers use request-scoped RenderContext instances, do not mutate shared context concurrently, and ensure retained custom component delegates are safe to share.

  • Constructor Details

  • Method Details

    • renderWithContent

      public String renderWithContent(Component content)
      Renders with explicit content bound to the shell content slot.
    • contentSlot

      public SlotKey<Component> contentSlot()
      Returns the dedicated shell content slot key.
    • asTemplate

      public Template asTemplate()
      Exposes the underlying compiled template for advanced composition.
    • render

      public String render(RenderContext context)
      Description copied from interface: Component
      Renders this component using the supplied render context.
      Specified by:
      render in interface Component
      Parameters:
      context - context used for slot resolution and render policy
      Returns:
      rendered HTML for this component