Flask example
The examples/flask_demo.py file shows a minimal Flask app that renders a UsersPage using Page and an HTMX-powered DataTable + Pagination fragment endpoint.
Run:
Key points:
- UsersPage is a Page subclass that returns UsersPage(...).to_html() for the full page
- /users/table returns only the table + pagination fragment for HTMX swaps