Skip to main content

larust_view/
lib.rs

1//! Blade-inspired template parsing for `*.blade.xr` files.
2//!
3//! This crate is pure text parsing plus a small runtime (`View`, `escape`) -
4//! no `syn`/`proc-macro2` dependency. Turning the parsed [`Node`] tree
5//! into actual Rust code lives in `larust-macros`' `view!` macro, since
6//! that's the part that needs the proc-macro toolchain and file-tracking
7//! plumbing that's local to a specific crate compilation.
8
9mod ast;
10mod error;
11mod parser;
12pub mod push_registry;
13mod resolve;
14mod runtime;
15
16pub use ast::{GlobalEntry, Node};
17pub use error::ParseError;
18pub use parser::parse;
19pub use resolve::{resolve, resolve_with_context, substitute_globals, substitute_stacks};
20pub use runtime::{escape, js, View};