Aurora.Uix.Templates.Basic.Renderer (Aurora UIX v0.1.4-rc.6)

Copy Markdown

Main entry point for Aurora UIX template rendering.

Dispatches rendering to specialized renderer modules based on the template tag and provides helpers for rendering inner elements in LiveView components. Handles rendering for index, show, form, and layout container tags (group, inline, stacked, sections).

Summary

Functions

Renders a template based on its tag type.

Renders inner elements of a component maintaining the auix context.

Functions

render(assigns)

@spec render(map()) :: Phoenix.LiveView.Rendered.t()

Renders a template based on its tag type.

Parameters

  • assigns (map()) - Aurora UIX context map with layout_tree and tag information.

Tag Types

  • :index - List view of entities
  • :show - Detailed entity view
  • :form - Data entry form
  • :group - Content grouping with title
  • :inline - Horizontal layout container
  • :stacked - Vertical layout container
  • :sections - Tab-based section container
  • :section - Individual section content
  • :field - Form field rendering

Returns

Phoenix.LiveView.Rendered.t() - The rendered template.

render_inner_elements(assigns)

@spec render_inner_elements(map()) :: Phoenix.LiveView.Rendered.t()

Renders inner elements of a component maintaining the auix context.

Parameters

  • assigns (map()) - Aurora UIX assigns map with auix context and inner_elements

Returns:

  • Phoenix.LiveView.Rendered.t()