Expand description
Shared parser, evaluator, preprocessing, and analysis primitives for Crepuscularity.
Backend crates use this crate as the source of truth for .crepus syntax. Keep changes here
mirrored into macro-facing code when the same syntax should work at compile time and runtime.
Re-exports§
pub use analysis::analyze_template;pub use analysis::classify_node;pub use analysis::BindingMap;pub use analysis::Fingerprint;pub use analysis::Region;pub use cache::DriverCache;pub use context::TemplateContext;pub use context::TemplateValue;pub use diagnostics::diagnose_crepus_source;pub use diagnostics::is_multi_component_file;pub use diagnostics::CrepusDiagnostic;pub use include_paths::resolve_include_path;pub use parser::parse_component_file;pub use parser::parse_template;pub use parser::unescape_crepus_text_literal;pub use parser::ComponentDef;pub use parser::ComponentFile;pub use parser::ComponentMeta;pub use preprocess::google_fonts_head_markup;pub use preprocess::merge_unique_font_families;pub use preprocess::strip_indent_decorators;pub use preprocess::IndentDecorators;pub use virtual_files::lookup_virtual_file;
Modules§
- analysis
- Binding analysis and fingerprinting for the
.crepusdriver pipeline. - ast
- build
- cache
- Turbopack-style content-addressed output cache for the
.crepusdriver. - context
- diagnostics
- eval
- include_
paths - Safe resolution of
includepaths relative to a templatebase_dir. - parser
- preprocess
- Indent-syntax decorators: top-of-file Google Font pragmas and trailing
.aliasclass shortcuts. - tailwind
- Shared Tailwind CSS v4 utility parsing (colors, spacing, sizing).
- virtual_
files - Lookup helpers for in-memory
TemplateContext::virtual_filesbundles.