478 Commits

Author SHA1 Message Date
René Kijewski
d6bf966048 Pass variables to sub-templates more reliably even if indirectly 2025-04-15 13:13:35 +02:00
Guillaume Gomez
ddfdd20855 Do not put question mark initialization expressions behind a reference 2025-04-12 21:52:14 +02:00
René Kijewski
7727d4032b generator: move manifest_root() call into Config::new() 2025-04-11 11:13:35 +02:00
strickczq
2437a573c7 fix #394 2025-04-11 11:13:35 +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
René Kijewski
dabb537170 Add config tracking test 2025-04-01 08:33:17 +02:00
René Kijewski
8344828578 Move ConfigKey::full_config_path into Config 2025-04-01 08:20:40 +02:00
Guillaume Gomez
d3f0947d11 Track config files 2025-03-31 22:41:49 +02:00
René Kijewski
697862a76c Bump version number to 0.13.0 2025-03-27 17:22:37 +01:00
Paolo Barbolini
1df437ec94 Fix minimum supported syn version 2025-03-22 12:07:33 +01:00
René Kijewski
19f6582308 Bump version number to v0.13.0-pre.0 2025-03-17 21:32:27 +01:00
Guillaume Gomez
3b52c907c3 Rename rinja into askama 2025-03-11 19:31:06 +01:00
Guillaume Gomez
2d80cc3524 Rename everything to rinja 2024-06-17 15:58:52 +02:00
Dirkjan Ochtman
1170d54c3b parser: improve parse error structure 2024-06-07 12:12:15 +02:00
Guillaume Gomez
c83cd4a71b Add regression tests for if let code generation 2024-05-17 17:13:58 +02:00
Guillaume Gomez
dd6b6be435 Fix wrong handling of nested templates with block 2024-05-16 13:47:02 +02:00
Guillaume Gomez
2b500b8211 Prevent generating unused code if a block is specified 2024-05-16 13:47:02 +02:00
Guillaume Gomez
cec89c4d03 Remove unneeded IntoIterator implementation for WritableBuffer 2024-05-16 13:47:02 +02:00
René Kijewski
8b33730512 Remove instances of use Enum::*
It's an anti-pattern to arbitrarily import enum variant, because it
hides typos (`SpellingErrr => {}` will still work), renamed and
removed variants.
2024-05-16 07:00:12 +02:00
Guillaume Gomez
f9d0311eef Add title filter 2024-05-15 16:26:03 +02:00
Guillaume Gomez
4d187257be Fix invalid if let code generation 2024-05-14 14:51:36 +02:00
Guillaume Gomez
ed512051cf Add deref builtin filter 2024-05-02 20:34:12 +02:00
Guillaume Gomez
354e769742 Allow to have access to imports in block calls 2024-04-25 11:09:02 +02:00
wrapperup
1347d36363 Add support for rendering a single block 2024-04-25 10:44:58 +02:00
René Kijewski
c48532fb17 Implement Render even if parsing failed
This makes error messages much more readable.
2024-04-18 12:54:15 +02:00
René Kijewski
32462d8e8e More consistent method order 2024-04-17 13:40:41 +02:00
René Kijewski
9d56fe38b3 Refactor fmt & format 2024-04-17 13:40:41 +02:00
René Kijewski
e493d3fef2 Use if cfg!() to dedup code 2024-04-17 13:40:41 +02:00
René Kijewski
3928e1df53 Sort ascending 2024-04-17 13:40:41 +02:00
René Kijewski
53aa1e64fa Use match instead of if-else 2024-04-17 13:40:41 +02:00
René Kijewski
aeeab7450d Let all filters use the same return type 2024-04-17 13:40:41 +02:00
René Kijewski
356ef6b2ad Add _visit_safe_filter 2024-04-17 13:40:41 +02:00
René Kijewski
85e0e2f7d5 Add _visit_json_filter 2024-04-17 13:40:41 +02:00
Guillaume Gomez
1899765230 Fix undetected cyclic dependency 2024-04-11 20:39:29 +02:00
Guillaume Gomez
66b53eecaf Remove markdown filter and comrak dependency 2024-04-06 23:07:30 +02:00
Guillaume Gomez
9d254a3e36 Remove unneeded double check for name == "safe" 2024-04-06 23:07:30 +02:00
Guillaume Gomez
efe53a387e Remove yaml filter 2024-04-06 23:07:30 +02:00
Guillaume Gomez
0b4b7d6345 Improve error message by providing the file where the error occurred if it is not an inlined source 2024-04-05 12:13:54 +02:00
Dirkjan Ochtman
e7f989aeb4 derive: wrap paths in Rc 2024-03-29 18:42:00 +01:00
Guillaume Gomez
5338f62a93 Add support for filter chaining in filter blocks 2024-03-11 14:25:46 +01:00
Guillaume Gomez
9439638e0f Create new Filter type 2024-03-11 14:25:46 +01:00
René Kijewski
8b4f868e45 Remove needless calls to .as_ref() 2024-03-07 15:32:14 +01:00
René Kijewski
7246ab8cf1 Only clone generics if needed 2024-03-07 15:32:14 +01:00
René Kijewski
7b244a4618 Tide is gone 2024-03-07 15:32:14 +01:00
René Kijewski
459532483e rocket: add (try_)into_response() 2024-03-07 15:32:14 +01:00
René Kijewski
e4ceeb1b3e warp: add (try_)into_response() 2024-03-07 15:32:14 +01:00
René Kijewski
5f2b6133ac axum: add (try_)into_response() 2024-03-07 15:32:14 +01:00
René Kijewski
961db59be5 actix_web: add (try_)into_response() 2024-03-07 15:32:14 +01:00
Guillaume Gomez
cf93ed0178 Prevent variable shadowing when storing block filter into a variable 2024-03-07 11:33:34 +01:00
Guillaume Gomez
491bff8de7 Update MapChain API to allow both owned and borrowed strings 2024-03-07 11:33:34 +01:00