document!() { /* proc-macro */ }
Creates a Document with embedded templates, fonts, and packages.
let pdf = typst_bake::document!("main.typ") .to_pdf()?;
Add to your Cargo.toml:
[package.metadata.typst-bake] template-dir = "./templates" fonts-dir = "./fonts"