22 Commits

Author SHA1 Message Date
Guillaume Gomez
741ff53a88 Add regression tests for mutable variables 2025-06-01 16:26:57 +02:00
Guillaume Gomez
ddfdd20855 Do not put question mark initialization expressions behind a reference 2025-04-12 21:52:14 +02:00
Guillaume Gomez
8081d717d3 If using local variable as value when creating a new variable, do not put it behind a reference 2025-04-11 07:19:59 +02:00
Guillaume Gomez
3b52c907c3 Rename rinja into askama 2025-03-11 19:31:06 +01:00
Guillaume Gomez
6e13c81a5f Move types into their tests 2024-11-09 22:22:42 +01:00
Guillaume Gomez
e7f2979b73 Add regression test for moving variables in let statement 2024-07-02 22:40:09 +02:00
Guillaume Gomez
2d80cc3524 Rename everything to rinja 2024-06-17 15:58:52 +02:00
René Kijewski
268d8250fb Use "target()" to parse "when" block
`target()` as used in parsing "let" and "if let" implements parsing
nested tuples and structs. But it does not implement parsing literals.

The functions `match_variant()` and `with_parameters()` as used in
parsing "when" blocks do not implement parsing nested structs, but it
implements parsing literals.

This PR combines `match_variant()` and `with_parameters()` into
`target()`, so that all `{%when%}` support nested structs, too.
2021-07-30 11:45:56 +02:00
René Kijewski
44c0623a58 Add tuple destructoring tests 2021-07-05 13:48:41 +02:00
vallentin
20f34be742 Added let shadow test 2020-12-25 22:42:44 +01:00
Dirkjan Ochtman
8cc20486c7 Write conditional blocks before popping variable stack (see #227) 2020-01-12 15:44:49 +01:00
Dirkjan Ochtman
ea2034e806 Clean up clippy warnings 2020-01-02 22:58:13 +01:00
Dirkjan Ochtman
e89eee3ffc Remove debugging cruft 2019-03-18 10:12:42 +01:00
Dirkjan Ochtman
292bf7baed Allow referencing self as a variable (fixes #207) 2019-02-20 20:41:17 +01:00
yossyJ
bef88f1696 Add support for tuple 2019-01-04 16:58:09 +01:00
Dirkjan Ochtman
5549f9a3cd Use 2018 edition idioms 2018-12-08 21:43:20 +01:00
Dirkjan Ochtman
cf8dc532f0 Remove unused macro_use attributes 2018-12-08 21:43:20 +01:00
Dirkjan Ochtman
31b90ccc65 Fix formatting with cargo fmt 2018-06-21 12:19:54 +02:00
Dirkjan Ochtman
ee9db1dbf4 Make ext attribute mandatory for source-specified templates 2017-09-07 20:42:54 +02:00
Dirkjan Ochtman
4f4b5a3a65 Change one test case to use source attribute 2017-08-16 21:04:52 +02:00
Dirkjan Ochtman
d7ac0825e0 Add test for variable declaration 2017-08-16 12:51:11 +02:00
Dirkjan Ochtman
fb11c175b2 Add test for let blocks 2017-08-15 07:47:02 +02:00