Skip to content

Commit d966650

Browse files
Release 0.47.0
Co-Authored-By: Daniel Roy Greenfeld <[email protected]>
1 parent 7b4455c commit d966650

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

CHANGELOG/0.47.0.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Air 0.47.0: Zero-config Jinja templates and AI build instructions
2+
3+
Air 0.47.0 makes Jinja templates as effortless as static files: drop a `templates/` directory into your project and `app.jinja` is ready to use. This release also ships AGENTS.md, a complete guide that teaches AI coding assistants how to build Air apps from scratch. Upgrade with:
4+
5+
```bash
6+
uv add --upgrade air
7+
```
8+
9+
## What's new
10+
11+
**Zero-config Jinja templates.** `app.jinja` is now always available on every `air.Air()` instance, no setup required. Drop a `templates/` directory into your project and start rendering. The same pattern as static files: put files where Air expects them, and the wiring happens automatically.
12+
13+
```python
14+
import air
15+
16+
app = air.Air()
17+
18+
@app.page
19+
def index(request: air.Request):
20+
return app.jinja(request, "home.html", title="Home")
21+
```
22+
23+
**AGENTS.md for AI coding tools.** A comprehensive build guide lives in the repo root and is served from the docs site at `docs.airwebframework.org/AGENTS.md`. AI assistants that read it can scaffold a complete Air app: routes, Jinja templates, static files, forms, HTMX, SSE, and Railway deployment. The guide was tested end-to-end by an AI building its first Air app, and four gaps it found were fixed immediately.
24+
25+
**Railway deployment in the AI guide.** The AGENTS.md build instructions cover the full path from blank project to production on Railway: a `railway.json`, a `hypercorn` dependency, and four CLI commands.
26+
27+
## What's better
28+
29+
**Static files cookbook rewritten.** The cookbook recipe now shows the actual zero-config workflow instead of a manual `app.mount()` call that hasn't been needed since 0.46.0.
30+
31+
**Docs build works with griffe v2.** Bumped mkdocstrings-python to 2.0.3, which depends on `griffelib` directly instead of the removed `griffe` meta-package. The docs build had been broken by the griffe 2.0 package split but hadn't been deployed since October 2025.
32+
33+
## Contributors
34+
35+
[@audreyfeldroy](https://audrey.feldroy.com) (Audrey M. Roy Greenfeld) and [@pydanny](https://daniel.feldroy.com) (Daniel Roy Greenfeld) designed and built this release: zero-config Jinja template detection, the AGENTS.md build guide, the mockup-to-template workflow, Railway deployment instructions, and the docs build fix.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# region ----> project <----
22
[project]
33
name = "Air"
4-
version = "0.46.0"
4+
version = "0.47.0"
55
description = "The new Python web framework by the authors of Two Scoops of Django. Built with FastAPI, Starlette, and Pydantic."
66
readme = "README.md"
77
requires-python = ">=3.13,<3.15"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)