Kida 0.5.0
minor release with tojson attribute mode, plain() t-string tag, Milo integration, GitHub App tokens, perf improvements, and a partial evaluator bug fix
Released 2026-04-12.
Kida 0.5.0 is a minor release adding thetojson(attr=true) attribute mode, the plain()t-string tag, Milo integration, GitHub App token support, and compile-time performance improvements.
Added
tojsonattribute mode —{{ value | tojson(attr=true) }}HTML-entity-encodes JSON for safe use in double-quoted HTML attributes (e.g. Alpinex-data). Defaulttojsonbehavior is unchanged for<script>tags and JSON-in-script contexts. (#81)plain()t-string tag — Newplain(t"...")tag for t-string inline templates that renders without HTML escaping. (#84)- Kida x Milo integration — Saga benchmarks, terminal tutorial, and vision rewrite for the Milo integration layer. (#85)
- GitHub App token support — Branded PR comments now support GitHub App tokens for authentication. (#83)
Fixed
- Partial evaluator preserves loop var bindings — Unrolled
for-loops no longer lose loop variable bindings when the partial evaluator inlines the loop body. (#78, #79)
Changed
- Performance — Cache
str.joinas local variable and enable built-in pure filter folding for faster template compilation. (#80) - Dispatch-dict compiler refactor — Expression compilation in
_compile_exprnow uses a dispatch dictionary instead of if/elif chains. (#87) - Documentation audit — Comprehensive accuracy, IA, and completeness pass across all docs. (#86)
- CI dependency bumps — Updated
actions/upload-artifactto v7,actions/setup-pythonto v6, andactions/download-artifactto v8.
Upgrade Notes
- No breaking changes. Drop-in upgrade from 0.4.x.
- GitHub Action version tag updated to
@v0.5.0.