Install
pip install kida-templates
Requires Python 3.14 or later. See installation for alternative methods.
Render a Template
from kida import Environment
env = Environment()
template = env.from_string("Hello, {{ name }}!")
print(template.render(name="World"))
# Output: Hello, World!
What's Next?
Quickstart
Start Here
Complete walkthrough in 2 minutes
Build and render your first file-based template.
First Project
Inheritance, filters, and multi-page rendering
Build a mini email template system with shared layouts.
Coming from Jinja2
Quick syntax cheat sheet
See what's the same, what's different, and what's new.
T-String Templates
PEP 750 inline templates
Use Python 3.14 t-strings for auto-escaped HTML snippets.
Syntax Guide
Variables, control flow, filters
Learn the template language from basics to advanced.
Streaming
Chunked rendering for HTMX and SSE
Yield HTML chunks as they render for progressive delivery.
Quick Links
- API Reference — Environment, Template, Loaders
- Filters — All built-in filters
- vs Jinja2 — Feature comparison
- Full Migration Guide — Step-by-step with verification