Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Extract askama_parser crate | Dirkjan Ochtman | 2023-07-31 | 1 | -674/+0 |
| | |||||
* | derive: move whitespace conversion into config module | Dirkjan Ochtman | 2023-07-31 | 1 | -11/+0 |
| | |||||
* | Allow macros to be defined and called without arguments | mataha | 2023-06-12 | 1 | -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 characters | Guillaume Gomez | 2023-03-09 | 1 | -0/+11 |
| | |||||
* | Revert "derive: Make Config `'static`" | René Kijewski | 2023-02-21 | 1 | -2/+2 |
| | |||||
* | derive: refactor parser | René Kijewski | 2023-01-30 | 1 | -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. |