adapto_compiler
Template compiler for Adapto — transforms parser AST into intermediate representation with static/dynamic segments, dependency graphs, and route manifests.
Part of the Adapto web framework.
Features
- AST to IR — compile parsed
.adaptofiles into ComponentIR - Static/dynamic segments — split templates for optimal rendering
- Dependency graphs — track reactive data dependencies
- Route manifests — generate route tables from compiled components
- Validation — catch template errors at compile time
Quick Start
[]
= "0.2"
use Compiler;
use parse_file;
let ast = parse_file?;
let compiler = new;
let ir = compiler.compile?;
// Access compiled output
println!;
println!;
println!;
println!;
License
MIT — Saken Tukenov