aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/parser (follow)
Commit message (Collapse)AuthorAgeFilesLines
* derive: move generator-specific methods out of ExprLibravatar Dirkjan Ochtman2023-07-311-71/+0
|
* derive: define separate ParseError typeLibravatar Dirkjan Ochtman2023-07-312-8/+19
|
* derive: move Syntax into parser moduleLibravatar Dirkjan Ochtman2023-07-312-3/+24
|
* Fix Rust macro invocations not accepting a path (#837)Libravatar Matthew Taylor2023-07-242-14/+69
|
* Parse templates onceLibravatar Dirkjan Ochtman2023-06-281-4/+1
|
* Allow macros to be defined and called without argumentsLibravatar mataha2023-06-121-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>
* Fix handling of trailing whitespace charactersLibravatar Guillaume Gomez2023-03-091-0/+11
|
* Fix typosLibravatar René Kijewski2023-02-241-11/+11
|
* Revert "derive: Make Config `'static`"Libravatar René Kijewski2023-02-213-17/+20
|
* derive: refactor parserLibravatar René Kijewski2023-01-304-0/+1999
`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.