Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | parser: remove panicking `From<&str> for Whitespace` | 2023-08-01 | 1 | -12/+5 | ||
| | ||||||
* | Fix parsing arrays | 2023-07-31 | 4 | -12/+93 | ||
| | | | | | | | | | | | | | | | | This change * allows using empty arrays `[]` in expessions, * adds a cut when the leading `[` was encountered, and * fixes the interaction between arrays and boolean OR. IMO the restriction that you couldn't use empty arrays is not needed. The missing cut made error messages slictly worse if you forget to add the closing `]`. Filter expressions must not have white spaces before the pipe `|`. The white space is used to tell a filter expressions, and `std::ops::Or` apart. | |||||
* | Fix parsing calls | 2023-07-31 | 3 | -6/+33 | ||
| | | | | | | | This change: * adds a cut when the leading `(` was encountered, and * fixed the interaction between call expressions and boolean OR. | |||||
* | CI: make sure parser is tested | 2023-07-31 | 1 | -3/+3 | ||
| | ||||||
* | parser: rename block to nodes | 2023-07-31 | 3 | -18/+21 | ||
| | ||||||
* | parser: reorder items in node module | 2023-07-31 | 1 | -50/+50 | ||
| | ||||||
* | parser: move Expr parser helpers into callers | 2023-07-31 | 1 | -53/+54 | ||
| | ||||||
* | parser: move single expr parsers into Expr impl | 2023-07-31 | 1 | -63/+63 | ||
| | ||||||
* | parser: move binary operator parsers into Expr impl | 2023-07-31 | 1 | -71/+71 | ||
| | ||||||
* | parser: flatten top-level Expr interface | 2023-07-31 | 2 | -36/+28 | ||
| | ||||||
* | parser: move suffix parsers into impl block | 2023-07-31 | 1 | -53/+61 | ||
| | ||||||
* | parser: move cond parsers into type impls | 2023-07-31 | 1 | -39/+43 | ||
| | ||||||
* | parser: move parser helpers into callers | 2023-07-31 | 1 | -35/+35 | ||
| | ||||||
* | parser: move when parsers into impl block | 2023-07-31 | 1 | -47/+50 | ||
| | ||||||
* | parser: define a struct for Match | 2023-07-31 | 3 | -9/+27 | ||
| | ||||||
* | parser: define a struct for Cond | 2023-07-31 | 3 | -9/+25 | ||
| | ||||||
* | parser: move node parsers into impl block | 2023-07-31 | 2 | -410/+406 | ||
| | ||||||
* | parser: move Whitespace parser into method | 2023-07-31 | 1 | -144/+142 | ||
| | ||||||
* | parser: move impl blocks closer to type definitions | 2023-07-31 | 1 | -12/+12 | ||
| | ||||||
* | parser: simplify top-level parser match | 2023-07-31 | 1 | -29/+24 | ||
| | ||||||
* | parser: add top-level Ast type | 2023-07-31 | 2 | -115/+148 | ||
| | ||||||
* | parser: move nested_parenthesis() helper into node module | 2023-07-31 | 2 | -51/+49 | ||
| | ||||||
* | parser: move helper functions into State impl | 2023-07-31 | 2 | -93/+92 | ||
| | ||||||
* | parser: move trait impl closer to type definition | 2023-07-31 | 2 | -11/+11 | ||
| | ||||||
* | parser: move single-use functions into caller | 2023-07-31 | 1 | -13/+13 | ||
| | ||||||
* | Extract askama_parser crate | 2023-07-31 | 12 | -46/+68 | ||
| | ||||||
* | derive: move whitespace conversion into config module | 2023-07-31 | 2 | -12/+11 | ||
| | ||||||
* | derive: move Parsed into parser module | 2023-07-31 | 2 | -36/+35 | ||
| | ||||||
* | derive: move generator-specific methods out of Expr | 2023-07-31 | 2 | -73/+71 | ||
| | ||||||
* | derive: define separate ParseError type | 2023-07-31 | 4 | -9/+32 | ||
| | ||||||
* | derive: move Syntax into parser module | 2023-07-31 | 5 | -40/+38 | ||
| | ||||||
* | Fix Rust macro invocations not accepting a path (#837) | 2023-07-24 | 5 | -19/+95 | ||
| | ||||||
* | There's no mention of name afterwards | 2023-07-21 | 1 | -1/+1 | ||
| | ||||||
* | fix clippy::items-after-test-module error (#839) | 2023-07-14 | 1 | -9/+9 | ||
| | ||||||
* | Cache include AST to reduce parsing overhead | 2023-06-28 | 1 | -23/+16 | ||
| | ||||||
* | Inline child() method to avoid borrowing all fields | 2023-06-28 | 1 | -27/+23 | ||
| | ||||||
* | Avoid reparsing included templates if possible | 2023-06-28 | 1 | -4/+23 | ||
| | ||||||
* | Parse templates once | 2023-06-28 | 3 | -18/+45 | ||
| | ||||||
* | Add section for performance tips | 2023-06-28 | 2 | -0/+17 | ||
| | ||||||
* | Added example on how to use super() | 2023-06-21 | 1 | -1/+2 | ||
| | ||||||
* | Update mendes requirement from 0.2.0 to 0.3.0 | 2023-06-13 | 1 | -1/+1 | ||
| | | | | | | | | | | | | Updates the requirements on [mendes](https://github.com/djc/mendes) to permit the latest version. - [Commits](https://github.com/djc/mendes/commits) --- updated-dependencies: - dependency-name: mendes dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> | |||||
* | Allow macros to be defined and called without arguments | 2023-06-12 | 3 | -2/+36 | ||
| | | | | | | | | | | 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> | |||||
* | Allow delimiters with arbitrary length | 2023-05-31 | 2 | -18/+96 | ||
| | ||||||
* | Update criterion requirement from 0.4 to 0.5 | 2023-05-24 | 2 | -2/+2 | ||
| | | | | | | | | | | | | | Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0) --- updated-dependencies: - dependency-name: criterion dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> | |||||
* | Upgrade to comrak 0.18 | 2023-05-20 | 3 | -2/+3 | ||
| | ||||||
* | Update to rocket 0.5-rc.3 | 2023-05-19 | 3 | -7/+22 | ||
| | ||||||
* | Improve whitespace documentation | 2023-04-03 | 1 | -2/+27 | ||
| | ||||||
* | Re-export `askama::*` in `askama_tide` (#802) | 2023-04-01 | 2 | -2/+2 | ||
| | | | | Every integration crate but `askama_tide` exports `askama::*`. This PR makes `askama_tide` behave the same as every other `integration crate`. | |||||
* | Use `try_reserve()` instead of `with_capacity()` | 2023-03-31 | 1 | -1/+2 | ||
| | | | | | | | | | | | | | | `String::with_capacity()` panics if the requested memory could not be allocated. `Template::render()` is fallible method, and the fact that it can panic is not documented. This commit uses `String::try_reserve()` instead, so even for an exceedingly large `SIZE_HINT` the method should not panic. In the generated code `write!()` calls will fail instead with `Err(std::fmt::Error)`. I do not test if `try_reserve()` returned an error, because the rendering might succeed anyway, if less bytes are written than estimated. | |||||
* | Template::SIZE_HINT: add documentation | 2023-03-31 | 1 | -1/+9 | ||
| |