Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement Default for MapChain | Dirkjan Ochtman | 2023-11-01 | 2 | -8/+10 |
| | |||||
* | Move build_template() up to the crate root | Dirkjan Ochtman | 2023-11-01 | 2 | -63/+67 |
| | |||||
* | Remove unnecessary type annotation | Dirkjan Ochtman | 2023-11-01 | 1 | -1/+1 |
| | |||||
* | Attach find_used_templates() to TemplateInput | Dirkjan Ochtman | 2023-11-01 | 2 | -44/+45 |
| | |||||
* | Move TemplateArgs into input module | Dirkjan Ochtman | 2023-11-01 | 2 | -134/+134 |
| | |||||
* | Inline nested derive_template() implementation | Dirkjan Ochtman | 2023-11-01 | 2 | -12/+6 |
| | |||||
* | Improve the macros section | Mo | 2023-10-30 | 1 | -5/+4 |
| | |||||
* | build(deps): update futures-lite requirement from 1.12.0 to 2.0.0 | dependabot[bot] | 2023-10-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Updates the requirements on [futures-lite](https://github.com/smol-rs/futures-lite) to permit the latest version. - [Release notes](https://github.com/smol-rs/futures-lite/releases) - [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md) - [Commits](https://github.com/smol-rs/futures-lite/compare/v1.12.0...v2.0.0) --- updated-dependencies: - dependency-name: futures-lite dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> | ||||
* | Create a type alias for all `IResult` to simplify code reading | Guillaume Gomez | 2023-10-25 | 3 | -108/+90 |
| | |||||
* | Add UI test for `elif` error message | Guillaume Gomez | 2023-10-25 | 2 | -0/+17 |
| | |||||
* | Improve error for `elif` keyword | Guillaume Gomez | 2023-10-25 | 1 | -1/+9 |
| | |||||
* | Improve error for invalid name used in `endmacro` | Guillaume Gomez | 2023-10-25 | 2 | -2/+9 |
| | |||||
* | Improve error for invalid name used in `endblock` | Guillaume Gomez | 2023-10-25 | 3 | -3/+32 |
| | |||||
* | Create `ErrorContext` type | Guillaume Gomez | 2023-10-25 | 3 | -95/+183 |
| | |||||
* | Extend documentation about using block/macro name when "ending" it | Guillaume Gomez | 2023-10-23 | 1 | -0/+14 |
| | |||||
* | Add test specifically for named blocks, and named macros | Guillaume Gomez | 2023-10-23 | 6 | -0/+53 |
| | |||||
* | Add test for macro self argument | max | 2023-10-12 | 2 | -0/+17 |
| | | | | Signed-off-by: max <gmx.sht@gmail.com> | ||||
* | Allow macros to take `self` as an argument | PizzasBear | 2023-10-12 | 1 | -1/+1 |
| | |||||
* | Apply clippy suggestions from Rust 1.73 | Dirkjan Ochtman | 2023-10-06 | 1 | -1/+1 |
| | |||||
* | Advertise Discord channel instead of Gitter | Dirkjan Ochtman | 2023-10-03 | 13 | -13/+13 |
| | |||||
* | parser: version bump to 0.1.1 | Dirkjan Ochtman | 2023-09-29 | 1 | -1/+1 |
| | |||||
* | parser: add rudimentary README | Dirkjan Ochtman | 2023-09-29 | 1 | -0/+9 |
| | |||||
* | Bump askama and askama_derive versions | Dirkjan Ochtman | 2023-09-29 | 2 | -2/+2 |
| | |||||
* | Add MSRV checking in CI | Dirkjan Ochtman | 2023-09-29 | 15 | -20/+24 |
| | | | | Bump MSRV to 1.65 for the use of let .. else. | ||||
* | Add audit job in CI workflow | Dirkjan Ochtman | 2023-09-29 | 2 | -0/+16 |
| | |||||
* | Upgrade to actions/checkout@v4 | Dirkjan Ochtman | 2023-09-29 | 1 | -3/+3 |
| | |||||
* | Use externally maintained Actions | Dirkjan Ochtman | 2023-09-29 | 2 | -43/+5 |
| | |||||
* | Pass `Node` parsing level to expressions | René Kijewski | 2023-09-28 | 3 | -18/+18 |
| | |||||
* | Limit nesting in parser nodes, too | René Kijewski | 2023-09-28 | 4 | -4/+152 |
| | |||||
* | Require Expr::parse() callers to supply Level | Dirkjan Ochtman | 2023-09-28 | 2 | -16/+18 |
| | |||||
* | Move Level into the crate root | Dirkjan Ochtman | 2023-09-28 | 3 | -18/+17 |
| | |||||
* | Yield a parser error when defining a macro named 'super' | Dirkjan Ochtman | 2023-09-28 | 2 | -4/+11 |
| | |||||
* | Limit expression nesting level to avoid stack overflows | Dirkjan Ochtman | 2023-09-28 | 2 | -34/+83 |
| | |||||
* | fuzz: remove input limit | manunio | 2023-09-18 | 1 | -4/+2 |
| | | | | | While working on https://github.com/djc/askama/pull/862 fuzz_parser was crashing and failing oss-fuzz build_checks. so a limit of 500 was placed, this pr removes that. | ||||
* | fuzz: Add fuzz for askama_parser | manunio | 2023-09-13 | 4 | -0/+58 |
| | |||||
* | Use char_indices() to get byte indices for characters | Dirkjan Ochtman | 2023-09-11 | 2 | -1/+8 |
| | |||||
* | Rename some variables | Dirkjan Ochtman | 2023-09-11 | 1 | -7/+7 |
| | |||||
* | build(deps): update mendes requirement from 0.3.0 to 0.5.0 | dependabot[bot] | 2023-09-08 | 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> | ||||
* | Explicitly set resolver at the workspace level | Dirkjan Ochtman | 2023-08-25 | 1 | -0/+1 |
| | |||||
* | escape: simplify literals as suggested by clippy | Dirkjan Ochtman | 2023-08-25 | 1 | -4/+4 |
| | |||||
* | Add section in book about using constants in templates | Guillaume Gomez | 2023-08-09 | 1 | -0/+22 |
| | |||||
* | Optimize parsing boolean literals, too | René Kijewski | 2023-08-03 | 1 | -9/+5 |
| | |||||
* | Parse paths and identifiers only once | René Kijewski | 2023-08-03 | 3 | -37/+53 |
| | | | | | | | | | | | | | | In the old implementation each variable in an expression would be parsed up to three times: * Try to parse a path because it contains a leading double colon, or infix double colons. * Try to parse it as path again by scanning for an identifier that contains an upper case character. * Fall back to scanning for any identifier. This PR turns all three steps into one, without the need for backtracking. | ||||
* | parser: fix white space issues in macro parsing | René Kijewski | 2023-08-02 | 1 | -2/+2 |
| | |||||
* | parser: allow negative numbers in patterns | René Kijewski | 2023-08-02 | 1 | -1/+5 |
| | |||||
* | parser: don't truncates whitespaces after arrays | René Kijewski | 2023-08-02 | 1 | -1/+1 |
| | |||||
* | parser: better error message for unknown nodes | René Kijewski | 2023-08-02 | 2 | -9/+8 |
| | |||||
* | parser: import `parser::{Expr, Node}` | René Kijewski | 2023-08-01 | 4 | -9/+8 |
| | |||||
* | parser: `node::Loop` is much bigger than the other variants | René Kijewski | 2023-08-01 | 2 | -10/+6 |
| | |||||
* | parser: move test for completeness | René Kijewski | 2023-08-01 | 1 | -6/+6 |
| |