René Kijewski
d6bf966048
Pass variables to sub-templates more reliably even if indirectly
2025-04-15 13:13:35 +02:00
Guillaume Gomez
4a17df55b5
Update variable initialization rule docs
2025-04-12 21:52:14 +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
c76d1a2563
Describe declaration/ownership when creating a new variable
2025-04-11 07:19:59 +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
5253e7cc41
Add another example for tuple for runtime values
2025-04-10 11:16:25 +02:00
Guillaume Gomez
4af7a13cbd
Fix runtime error doc
2025-04-10 11:16:25 +02:00
Guillaume Gomez
20149db16f
Implement Values
on tuple
2025-04-10 11:16:25 +02:00
Guillaume Gomez
6e987eb50d
Merge pull request #385 from GuillaumeGomez/track-config-files
...
Track config files
2025-04-01 11:23:29 +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
Guillaume Gomez
aa5e200b10
Merge pull request #384 from Kijewski/pr-derive
...
`askama_derive` accidentally exposed as a feature
2025-03-31 21:54:49 +02:00
René Kijewski
68fbf93d99
askama_derive
accidentally exposed as a feature
...
If you don't use an optional dependency at least once with `dep:…` in a
feature, it automatically, implicitly becomes a feature flag. The
`dep:` prefix was missing from `askama_derive` for the `derive` feature.
2025-03-31 21:31:56 +02:00
René Kijewski
697862a76c
Bump version number to 0.13.0
v0.13.0
2025-03-27 17:22:37 +01:00
René Kijewski
661c38cdc6
ci: fix up to #380
2025-03-23 23:52:04 +01:00
René Kijewski
35a1be81af
ci: ensure that github CI config is safe using zizmor
...
Zizmor: <https://woodruffw.github.io/zizmor/ >
2025-03-23 23:25:08 +01:00
Paolo Barbolini
1df437ec94
Fix minimum supported syn
version
2025-03-22 12:07:33 +01:00
René Kijewski
f564e724e1
Revive askama_escaped
...
We adopted `askama_escape` with the other askama crates. It was not
updated for quite some time, but still gets 25k+ downloads / day Mon to
Fri.
This PR re-adds the crate using our current HTML escaping function.
askama_escape/v0.13.0-pre.0
2025-03-21 22:45:25 +01:00
René Kijewski
d8896bcc43
Re-enable Cluster-Fuzz
in CI
2025-03-19 23:49:24 +01:00
Guillaume Gomez
bd7f4277ca
Add link to blog post explaining merge of rinja and askama
v0.13.0-pre.0
2025-03-19 22:23:45 +01:00
Guillaume Gomez
a9483c624f
Merge pull request #373 from bionicles/patch-1
...
fix toml features field in the filters chapter of the book
2025-03-19 20:49:57 +01:00
bion howard
3afa15164d
fix toml features field in the filters chapter of the book
...
the features field needs to be a list here for this code to be copypasta-ready
2025-03-19 15:37:52 -04:00
Guillaume Gomez
ff168ed038
Merge pull request #372 from Kijewski/pr-rinja-link
...
book: fix article link
2025-03-19 15:48:12 +01:00
René Kijewski
1de636fcb7
book: fix article link
2025-03-19 15:45:14 +01:00
Guillaume Gomez
6bb4b6ecc5
Merge pull request #369 from Kijewski/pr-askama_web
...
book: mention `askama_web`
2025-03-18 13:15:54 +01:00
René Kijewski
ed5776366c
book: mention [askama_web
]
...
[`askama_web`]: https://crates.io/crates/askama_web/
2025-03-18 11:51:38 +01:00
Guillaume Gomez
bd86144313
Merge pull request #370 from Kijewski/pr-0.13-pre.0
...
Bump version number to v0.13.0-pre.0
2025-03-18 10:52:54 +01:00
René Kijewski
19f6582308
Bump version number to v0.13.0-pre.0
2025-03-17 21:32:27 +01:00
René Kijewski
3cf5d85325
Update askama_playground URL
2025-03-16 21:58:21 +01:00
Guillaume Gomez
70531eb827
Merge pull request #364 from Kijewski/pr-twig
...
docs: update twig's URL
2025-03-11 23:08:58 +01:00
René Kijewski
38016cc4b8
docs: update twig's URL
2025-03-11 22:19:12 +01:00
Guillaume Gomez
57312e1922
Merge pull request #363 from Kijewski/pr-api-on-rtd
...
Add bleeding edge API documentation to rtd
2025-03-11 21:58:16 +01:00
René Kijewski
b8d8ce05ee
Add bleeding edge API documentation to rtd
2025-03-11 21:32:19 +01:00
René Kijewski
2d2592e719
Update fuzzing corpus URL
2025-03-11 20:18:00 +01:00
Guillaume Gomez
d8c24b5ccd
Merge pull request #360 from askama-rs/pr-typ
...
ci: ignore typos in librustdoc sources
2025-03-11 19:59:38 +01:00
René Kijewski
f2ed85812e
ci: ignore typos in librustdoc sources
...
We copied the sources verbatim, so it's no use to fix any typos.
Also, "typ" is not really a typo in here, because "type" would not have
been a valid identifier.
2025-03-11 19:44:10 +01:00
Guillaume Gomez
3c4a2eb9b0
Comment out Cluster-Fuzz
for now
2025-03-11 19:31:06 +01:00
Guillaume Gomez
3b52c907c3
Rename rinja
into askama
2025-03-11 19:31:06 +01:00
Guillaume Gomez
0b098f1dd0
Merge pull request #351 from Kijewski/pr-ascii_str
...
Replace `from_utf8_unsafe()` with `AsciiStr`
2025-02-24 10:22:24 +00:00
René Kijewski
6ae689cbc3
Re-use Html
escaping code to implement JSON escaping
2025-02-20 22:22:24 +01:00
dependabot[bot]
c3fac0ca99
build(deps): update pulldown-cmark requirement from 0.12.0 to 0.13.0
...
Updates the requirements on [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark ) to permit the latest version.
- [Release notes](https://github.com/raphlinus/pulldown-cmark/releases )
- [Commits](https://github.com/raphlinus/pulldown-cmark/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: pulldown-cmark
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-16 16:57:16 +01:00
René Kijewski
84edf1cc77
Replace from_utf8_unsafe()
with AsciiStr
...
This moves many unsafe block into one file.
2025-02-11 00:37:40 +01:00
René Kijewski
52de203fb1
Don't format with overflow_delimited_expr
...
The default value for `overflow_delimited_expr = true` was reverted to
`false`: [rust-lang/rust#136312 ].
[rust-lang/rust#136312 ]: https://redirect.github.com/rust-lang/rust/pull/136312
2025-02-09 21:45:58 +01:00
Guillaume Gomez
c496c0b1c5
Merge pull request #346 from Kijewski/pr-more-values
...
Implement `Values` for all collection types
2025-02-09 21:07:10 +01:00
Guillaume Gomez
e9483747d1
Merge pull request #342 from Kijewski/pr-no-derive
...
Make `derive` optional
2025-02-09 21:05:55 +01:00
Guillaume Gomez
da18bc0657
Merge pull request #349 from Kijewski/pr-escaper-arg-names
...
Rename `Escaper` argument `fmt` into `dest`
2025-02-09 20:58:15 +01:00
René Kijewski
e216f1b1ea
Rename Escaper
argument fmt
into dest
...
I was confused for a moment why an escaper would accept an
`fmt::Formatter` or `fmt::Arguments`.
2025-02-09 18:43:33 +01:00