aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Inline nested derive_template() implementationLibravatar Dirkjan Ochtman2023-11-012-12/+6
|
* Improve the macros sectionLibravatar Mo2023-10-301-5/+4
|
* build(deps): update futures-lite requirement from 1.12.0 to 2.0.0Libravatar dependabot[bot]2023-10-261-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 readingLibravatar Guillaume Gomez2023-10-253-108/+90
|
* Add UI test for `elif` error messageLibravatar Guillaume Gomez2023-10-252-0/+17
|
* Improve error for `elif` keywordLibravatar Guillaume Gomez2023-10-251-1/+9
|
* Improve error for invalid name used in `endmacro`Libravatar Guillaume Gomez2023-10-252-2/+9
|
* Improve error for invalid name used in `endblock`Libravatar Guillaume Gomez2023-10-253-3/+32
|
* Create `ErrorContext` typeLibravatar Guillaume Gomez2023-10-253-95/+183
|
* Extend documentation about using block/macro name when "ending" itLibravatar Guillaume Gomez2023-10-231-0/+14
|
* Add test specifically for named blocks, and named macrosLibravatar Guillaume Gomez2023-10-236-0/+53
|
* Add test for macro self argumentLibravatar max2023-10-122-0/+17
| | | | Signed-off-by: max <gmx.sht@gmail.com>
* Allow macros to take `self` as an argumentLibravatar PizzasBear2023-10-121-1/+1
|
* Apply clippy suggestions from Rust 1.73Libravatar Dirkjan Ochtman2023-10-061-1/+1
|
* Advertise Discord channel instead of GitterLibravatar Dirkjan Ochtman2023-10-0313-13/+13
|
* parser: version bump to 0.1.1Libravatar Dirkjan Ochtman2023-09-291-1/+1
|
* parser: add rudimentary READMELibravatar Dirkjan Ochtman2023-09-291-0/+9
|
* Bump askama and askama_derive versionsLibravatar Dirkjan Ochtman2023-09-292-2/+2
|
* Add MSRV checking in CILibravatar Dirkjan Ochtman2023-09-2915-20/+24
| | | | Bump MSRV to 1.65 for the use of let .. else.
* Add audit job in CI workflowLibravatar Dirkjan Ochtman2023-09-292-0/+16
|
* Upgrade to actions/checkout@v4Libravatar Dirkjan Ochtman2023-09-291-3/+3
|
* Use externally maintained ActionsLibravatar Dirkjan Ochtman2023-09-292-43/+5
|
* Pass `Node` parsing level to expressionsLibravatar René Kijewski2023-09-283-18/+18
|
* Limit nesting in parser nodes, tooLibravatar René Kijewski2023-09-284-4/+152
|
* Require Expr::parse() callers to supply LevelLibravatar Dirkjan Ochtman2023-09-282-16/+18
|
* Move Level into the crate rootLibravatar Dirkjan Ochtman2023-09-283-18/+17
|
* Yield a parser error when defining a macro named 'super'Libravatar Dirkjan Ochtman2023-09-282-4/+11
|
* Limit expression nesting level to avoid stack overflowsLibravatar Dirkjan Ochtman2023-09-282-34/+83
|
* fuzz: remove input limitLibravatar manunio2023-09-181-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_parserLibravatar manunio2023-09-134-0/+58
|
* Use char_indices() to get byte indices for charactersLibravatar Dirkjan Ochtman2023-09-112-1/+8
|
* Rename some variablesLibravatar Dirkjan Ochtman2023-09-111-7/+7
|
* build(deps): update mendes requirement from 0.3.0 to 0.5.0Libravatar dependabot[bot]2023-09-081-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 levelLibravatar Dirkjan Ochtman2023-08-251-0/+1
|
* escape: simplify literals as suggested by clippyLibravatar Dirkjan Ochtman2023-08-251-4/+4
|
* Add section in book about using constants in templatesLibravatar Guillaume Gomez2023-08-091-0/+22
|
* Optimize parsing boolean literals, tooLibravatar René Kijewski2023-08-031-9/+5
|
* Parse paths and identifiers only onceLibravatar René Kijewski2023-08-033-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 parsingLibravatar René Kijewski2023-08-021-2/+2
|
* parser: allow negative numbers in patternsLibravatar René Kijewski2023-08-021-1/+5
|
* parser: don't truncates whitespaces after arraysLibravatar René Kijewski2023-08-021-1/+1
|
* parser: better error message for unknown nodesLibravatar René Kijewski2023-08-022-9/+8
|
* parser: import `parser::{Expr, Node}`Libravatar René Kijewski2023-08-014-9/+8
|
* parser: `node::Loop` is much bigger than the other variantsLibravatar René Kijewski2023-08-012-10/+6
|
* parser: move test for completenessLibravatar René Kijewski2023-08-011-6/+6
|
* parser: add type for `Node::Comment`Libravatar René Kijewski2023-08-013-151/+114
|
* parser: add `expr::Loop::parse()`Libravatar René Kijewski2023-08-011-68/+70
|
* parser: remove re-exports `parser::{node,expr}::*`Libravatar René Kijewski2023-08-016-18/+22
|
* parser: add type for `Node::Extends`Libravatar René Kijewski2023-08-014-12/+19
|
* parser: add type for `Node::Include`Libravatar René Kijewski2023-08-013-22/+35
|