PhoenixKit.Modules.Publishing.PageBuilder (phoenix_kit v1.7.71)

Copy Markdown View Source

Rendering pipeline for PHK (PhoenixKit) page content.

Processes component-based page definitions through:

  1. Parse XML to AST
  2. Inject dynamic data ({{variable}} placeholders)
  3. Resolve components (map to actual component modules)
  4. Apply theme/variants
  5. Render to HTML

Summary

Functions

Renders PHK content directly from a string.

Types

assigns()

@type assigns() :: map()

ast()

@type ast() :: map()

render_result()

@type render_result() :: {:ok, Phoenix.LiveView.Rendered.t()} | {:error, term()}

Functions

render_content(content, assigns \\ %{})

@spec render_content(String.t(), assigns()) :: render_result()

Renders PHK content directly from a string.