Core API
The wijjit.core package glues together every subsystem in the runtime—views, rendering, events, focus, overlays, wiring, and notifications. Use this reference when extending framework behaviour or embedding Wijjit inside another application.
Application lifecycle
Main Wijjit application class. |
Inline rendering
The wijjit.inline module provides APIs for rendering Wijjit templates without entering alternate screen mode. Content is output directly to terminal scrollback.
- wijjit.render_inline(template, *, width=None, height='auto', print_output=True, file=None, **context)
One-shot template rendering to stdout. See Inline Rendering.
- class wijjit.InlineApp(template, *, height='auto', width=None, initial_state=None, refresh_interval=0.1, enable_input=False, quit_key='ctrl+q')
Async context manager for interactive inline displays with reactive state. See Inline Rendering.
Event loop & routing
Main event loop for Wijjit applications. |
|
Manages view registration and navigation. |
|
Configuration for a view. |
|
Template renderer using Jinja2. |
|
Consolidated rendering context for template processing. |
View templating
Flask-style helpers a view function returns to describe what to render. See Templates & Tags.
Immutable result of a view function describing what to render. |
- wijjit.render_template_string(source, /, **context)
Render an inline template string with the given context, returning a
RenderedView.stateis auto-injected.
- wijjit.render_template(name, /, **context)
Render a template file (loaded from the configured
template_dir/ auto-discoveredtemplates/directory) with the given context, returning aRenderedView.
Virtual DOM & Reconciliation
Immutable description of a UI element. |
|
Mutable builder for constructing VNode trees during template execution. |
|
Reconciles old and new VNode trees, producing a patched Element tree. |
|
Types of differences detected during reconciliation. |
|
Registry mapping VNode types to Element factories. |
Interaction managers
Manages focus across UI elements. |
|
Manages hover state across UI elements. |
|
Routes mouse events to appropriate handlers. |
|
Manages overlay rendering, z-indexing, and event routing. |
|
Manager for notification stack and lifecycle. |
|
Manages element callback wiring and state binding. |
Supporting structures
Layer types for z-index management. |
|
Represents a UI overlay (modal, dropdown, tooltip, etc.). |