Skip to main content

Crate gracile

Crate gracile 

Source

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.

Structs§

Engine
The Gracile templating engine.

Enums§

Error
All errors produced by Gracile.
Value
A runtime value in the Gracile template engine.

Type Aliases§

FilterFn
Signature for user-supplied filter functions.
LoaderFn
Signature for a template loader function.
Result