GPUI.Template (gpui v0.2.0-rc.1)

Copy Markdown View Source

HEEx-style template support for GPUI.

This module intentionally reuses Phoenix LiveView's tag parser for the HEEx-compatible tokenizer/tree builder, then compiles the parsed tree into %GPUI.Element{} values instead of %Phoenix.LiveView.Rendered{}.

Lowercase tags are renderer primitives. Native components use GPUI.UI or GPUI.UI.Overlay; their internal ui_* element tags are intentionally not a public template surface.

Summary

Functions

Compiles a HEEx-style GPUI template into an element tree.

Functions

compile(source, caller, meta \\ [])

@spec compile(String.t(), Macro.Env.t(), keyword()) :: Macro.t()

sigil_GPUI(arg, modifiers)

(macro)

Compiles a HEEx-style GPUI template into an element tree.