aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/parser/mod.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* derive: define separate ParseError typeLibravatar Dirkjan Ochtman2023-07-311-6/+17
|
* derive: move Syntax into parser moduleLibravatar Dirkjan Ochtman2023-07-311-1/+23
|
* Parse templates onceLibravatar Dirkjan Ochtman2023-06-281-4/+1
|
* Revert "derive: Make Config `'static`"Libravatar René Kijewski2023-02-211-13/+16
|
* derive: refactor parserLibravatar René Kijewski2023-01-301-0/+314
`parser.rs` was a single file containing almost 2000 lines. This PR split the file into multiple, smaller files. `Expr`, `Node`, and `Target` each get an own file. Each struct gets a `parse()` method that return `Result<Self>`, and every other detail is private to the file. This PR should make this essential part of Askama more easy to understand, and make future modifications easier.