Rendering pipeline for PHK (PhoenixKit) page content.
Processes component-based page definitions through:
- Parse XML to AST
- Inject dynamic data ({{variable}} placeholders)
- Resolve components (map to actual component modules)
- Apply theme/variants
- Render to HTML
Summary
Functions
Renders PHK content directly from a string.
Types
@type assigns() :: map()
@type ast() :: map()
@type render_result() :: {:ok, Phoenix.LiveView.Rendered.t()} | {:error, term()}
Functions
@spec render_content(String.t(), assigns()) :: render_result()
Renders PHK content directly from a string.