Repository navigation
v0.1.2
Native binaries now run commands, and rendering is much faster.
- Both native backends (C and Cranelift) build
command:blocks and dispatch onargv[1], matchingmidad run file.md <command>. An unknown command exits 2. - Templates render into one growable buffer on both backends. Render benchmark (200k renders, quiet 1-vCPU box, interleaved medians): C 302 -> 131 ms, Cranelift 406 -> 93 ms, Go 149 ms.
- Templates with
if/elseandforrender natively on both backends. - A native build now refuses
persist:and mismatched template maps instead of silently giving a wrong result. forloops inhtml:templates, form posts to routes, multi-line brackets,midad fmt .,run --watch, and fixes. See CHANGELOG.md for the full list.
Known limit: the C backend leaks about 160 B per render (refcounting is the next sprint's first item). See docs/LIMITS.md.
Full notes: https://github.com/mdexec/midad/blob/main/CHANGELOG.md