aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/lib.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-31parser: move trait impl closer to type definitionLibravatar Dirkjan Ochtman1-11/+0
2023-07-31parser: move single-use functions into callerLibravatar Dirkjan Ochtman1-13/+13
2023-07-31Extract askama_parser crateLibravatar Dirkjan Ochtman1-15/+18
2023-07-31derive: move Parsed into parser moduleLibravatar Dirkjan Ochtman1-0/+34
2023-07-31derive: define separate ParseError typeLibravatar Dirkjan Ochtman1-6/+17
2023-07-31derive: move Syntax into parser moduleLibravatar Dirkjan Ochtman1-1/+23
2023-06-28Parse templates onceLibravatar Dirkjan Ochtman1-4/+1
2023-02-21Revert "derive: Make Config `'static`"Libravatar René Kijewski1-13/+16
2023-01-30derive: refactor parserLibravatar René Kijewski1-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.