AshUi.RenderTarget.Html (ash_ui v0.1.0)

Copy Markdown View Source

Host-neutral HTML target lowering for AshUi.RenderTree.

Live HTML adapters, static HTML, and future HTML-like hosts should consume this target contract instead of reinterpreting semantic render-tree metadata themselves.

Summary

Functions

attributes_iodata(attrs)

@spec attributes_iodata(map() | keyword()) :: iodata()

attrs(element, opts \\ [])

@spec attrs(AshUi.RenderTree.Element.t(), keyword()) :: map()

attrs_for(tag, attrs, events, meta, opts \\ [])

@spec attrs_for(
  atom() | String.t() | nil,
  map(),
  [AshUi.EventBinding.t()],
  map(),
  keyword()
) :: map()

html_escape(content)

@spec html_escape(term()) :: iodata()

html_text_escape(content)

@spec html_text_escape(term()) :: iodata()

render_static(tree, opts \\ [])

@spec render_static(term(), keyword()) :: {:safe, iodata()}

render_tree_value?(arg1)

@spec render_tree_value?(term()) :: boolean()

safe_text(content)

@spec safe_text(term()) :: {:safe, iodata()}

safe_to_iodata(tree)

@spec safe_to_iodata(term()) :: iodata()

text_content(safe)