Class AbstractTurboRenderer<T extends TemplatedBuilder<?>>

java.lang.Object
io.micronaut.views.turbo.AbstractTurboRenderer<T>
Type Parameters:
T - The class to be built
Direct Known Subclasses:
DefaultTurboFrameRenderer

public abstract class AbstractTurboRenderer<T extends TemplatedBuilder<?>> extends Object
Since:
3.4.0
Author:
Sergio del Amo
  • Constructor Details

    • AbstractTurboRenderer

      protected AbstractTurboRenderer(ViewsRendererLocator viewsRendererLocator, String mediaType)
      Parameters:
      viewsRendererLocator - Views renderer Locator
      mediaType - Media Type
  • Method Details

    • render

      @NonNull public @NonNull Optional<io.micronaut.core.io.Writable> render(@NonNull T builder, @Nullable @Nullable io.micronaut.http.HttpRequest<?> request)
      Parameters:
      builder - Builder
      request - The Request
      Returns:
      An Optional Writable with the builder rendered