struct
UI::RenderContext
- UI::RenderContext
- Struct
- Value
- Object
Overview
Phase 8A — Renderer-scoped per-request context threaded through
UI::Web::Renderer#render(view, render_context:). Carries values
the web visit methods need but that don't belong on the view tree
itself (e.g. the CSRF token for UI::Form's hidden-input
injection).
Lives in the core UI namespace (rather than the Amber integration
file) so the web renderer can read it without requiring the Amber
integration to be loaded. Apps not using Amber simply pass a fresh
RenderContext.empty or omit the argument.