aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser/src/node.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-08-01parser: remove panicking `From<&str> for Whitespace`Libravatar René Kijewski1-12/+5
2023-07-31parser: rename block to nodesLibravatar Dirkjan Ochtman1-12/+13
2023-07-31parser: reorder items in node moduleLibravatar Dirkjan Ochtman1-50/+50
2023-07-31parser: flatten top-level Expr interfaceLibravatar Dirkjan Ochtman1-1/+1
2023-07-31parser: move cond parsers into type implsLibravatar Dirkjan Ochtman1-39/+43
2023-07-31parser: move parser helpers into callersLibravatar Dirkjan Ochtman1-35/+35
2023-07-31parser: move when parsers into impl blockLibravatar Dirkjan Ochtman1-47/+50
2023-07-31parser: define a struct for MatchLibravatar Dirkjan Ochtman1-3/+22
2023-07-31parser: define a struct for CondLibravatar Dirkjan Ochtman1-3/+19
2023-07-31parser: move node parsers into impl blockLibravatar Dirkjan Ochtman1-388/+404
2023-07-31parser: move Whitespace parser into methodLibravatar Dirkjan Ochtman1-144/+142
2023-07-31parser: move impl blocks closer to type definitionsLibravatar Dirkjan Ochtman1-12/+12
2023-07-31parser: move helper functions into State implLibravatar Dirkjan Ochtman1-32/+31
2023-07-31parser: move trait impl closer to type definitionLibravatar Dirkjan Ochtman1-0/+11
2023-07-31Extract askama_parser crateLibravatar Dirkjan Ochtman1-23/+23
2023-07-31derive: move whitespace conversion into config moduleLibravatar Dirkjan Ochtman1-11/+0
2023-06-12Allow macros to be defined and called without argumentsLibravatar mataha1-2/+5
This commit introduces a shorthand for defining and calling macros when using them as a reusable substitute for variables assigned complex values (e.g. string literals with or without newline escapes). The use-case is formatting - from my experience it's easier to visually parse a `macro` `endmacro` block than a multiline variable assignment. Signed-off-by: mataha <mataha@users.noreply.github.com>
2023-03-09Fix handling of trailing whitespace charactersLibravatar Guillaume Gomez1-0/+11
2023-02-21Revert "derive: Make Config `'static`"Libravatar René Kijewski1-2/+2
2023-01-30derive: refactor parserLibravatar René Kijewski1-0/+671
`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.