Skip to main content

Crate gracile_core

Crate gracile_core 

Source

Re-exports§

pub use error::Error;
pub use error::Result;
pub use renderer::Engine;
pub use renderer::FilterFn;
pub use renderer::LoaderFn;
pub use value::Value;

Modules§

ast
Abstract syntax tree types for Gracile templates.
error
Error types and diagnostics for lexing, parsing, and rendering.
lexer
Tokenizer that converts raw template source into a stream of tokens.
parser
Hand-written recursive descent parser that builds the AST from tokens.
renderer
Template renderer that evaluates the AST against a context to produce output.
value
Runtime value types used during template evaluation.

Macros§

context
Build a HashMap<String, Value> context from key => value pairs.