Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-08-01 | parser: move test for completeness | 1 | -6/+6 | ||
2023-08-01 | parser: add type for `Node::Comment` | 1 | -43/+57 | ||
2023-08-01 | parser: add `expr::Loop::parse()` | 1 | -68/+70 | ||
2023-08-01 | parser: remove re-exports `parser::{node,expr}::*` | 1 | -2/+2 | ||
2023-08-01 | parser: add type for `Node::Extends` | 1 | -7/+14 | ||
2023-08-01 | parser: add type for `Node::Include` | 1 | -12/+26 | ||
2023-08-01 | parser: rename `Node::Cond` into `If` and add type | 1 | -33/+47 | ||
2023-08-01 | parser: add type for `Node::Let` | 1 | -25/+33 | ||
2023-08-01 | parser: add type for `Node::Raw` | 1 | -28/+37 | ||
2023-08-01 | parser: add type for `Node::Lit` | 1 | -30/+47 | ||
2023-08-01 | parser: add type for `Node::BlockDef` | 1 | -29/+44 | ||
2023-08-01 | parser: add type for `Node::Match` | 1 | -35/+53 | ||
2023-08-01 | parser: add type for `Node::Call` | 1 | -19/+37 | ||
2023-08-01 | parser: add type for `Node::Import` | 1 | -16/+32 | ||
2023-08-01 | parser: let `Macro` know its name | 1 | -52/+53 | ||
2023-08-01 | parser: remove panicking `From<&str> for Whitespace` | 1 | -12/+5 | ||
2023-07-31 | parser: rename block to nodes | 1 | -12/+13 | ||
2023-07-31 | parser: reorder items in node module | 1 | -50/+50 | ||
2023-07-31 | parser: flatten top-level Expr interface | 1 | -1/+1 | ||
2023-07-31 | parser: move cond parsers into type impls | 1 | -39/+43 | ||
2023-07-31 | parser: move parser helpers into callers | 1 | -35/+35 | ||
2023-07-31 | parser: move when parsers into impl block | 1 | -47/+50 | ||
2023-07-31 | parser: define a struct for Match | 1 | -3/+22 | ||
2023-07-31 | parser: define a struct for Cond | 1 | -3/+19 | ||
2023-07-31 | parser: move node parsers into impl block | 1 | -388/+404 | ||
2023-07-31 | parser: move Whitespace parser into method | 1 | -144/+142 | ||
2023-07-31 | parser: move impl blocks closer to type definitions | 1 | -12/+12 | ||
2023-07-31 | parser: move helper functions into State impl | 1 | -32/+31 | ||
2023-07-31 | parser: move trait impl closer to type definition | 1 | -0/+11 | ||
2023-07-31 | Extract askama_parser crate | 1 | -23/+23 | ||
2023-07-31 | derive: move whitespace conversion into config module | 1 | -11/+0 | ||
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-21 | Revert "derive: Make Config `'static`" | 1 | -2/+2 | ||
2023-01-30 | derive: refactor parser | 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. |