Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-07-31 | Extract askama_parser crate | 4 | -2052/+0 | ||
2023-07-31 | derive: move whitespace conversion into config module | 1 | -11/+0 | ||
2023-07-31 | derive: move Parsed into parser module | 1 | -0/+34 | ||
2023-07-31 | derive: move generator-specific methods out of Expr | 1 | -71/+0 | ||
2023-07-31 | derive: define separate ParseError type | 2 | -8/+19 | ||
2023-07-31 | derive: move Syntax into parser module | 2 | -3/+24 | ||
2023-07-24 | Fix Rust macro invocations not accepting a path (#837) | 2 | -14/+69 | ||
2023-06-28 | Parse templates once | 1 | -4/+1 | ||
2023-06-12 | Allow macros to be defined and called without arguments | 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> | |||||
2023-03-09 | Fix handling of trailing whitespace characters | 1 | -0/+11 | ||
2023-02-24 | Fix typos | 1 | -11/+11 | ||
2023-02-21 | Revert "derive: Make Config `'static`" | 3 | -17/+20 | ||
2023-01-30 | derive: refactor parser | 4 | -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. |