Air API Reference Overview
mainThe Air API provides a comprehensive set of tools for building web applications. Key functional areas include:
- Application Lifecycle: Use
Applicationsto instantiate your app. - Data Handling: Use
Formsfor user data validation andRequests(an HTMX utility) for dependency injection. - UI & Templating: Leverage
Tags(HTML),SVGtags,Layouts(includingmvcssandpicocsssupport), andTemplating(Jinja and Air Tag renderers). - Server Logic: Manage
Routingfor app composition,Middlewarefor request processing, andBackground Tasksfor asynchronous work. - Communication: Handle
ResponsesviaAirResponseorSSEResponse(Server Sent Events), and manage errors viaException Handlersand specificExceptions.