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
René Kijewski
e4f014745b
Implement Values
for all collection types
2025-02-09 18:27:02 +01:00
René Kijewski
98cb4233e2
Make derive
optional
...
This is the same as in e.g. `serde` with the feature of the same name.
If you manually depend on `rinja_derive`, then you can make better use
of your multi-core setup.
2025-02-09 17:47:17 +01:00
Guillaume Gomez
742821b1ce
Merge pull request #343 from Kijewski/pr-serde_derive
...
Allow parallel compilation of `serde` and `serde_derive`
2025-02-09 12:26:25 +01:00
Guillaume Gomez
bb6153b38e
Merge pull request #340 from Kijewski/pr-stuff
...
book: document `blocks`
2025-02-09 12:25:47 +01:00
Guillaume Gomez
a0c8c43194
Merge pull request #341 from Kijewski/pr-missing-block
...
derive: fail if requested template block is missing
2025-02-09 12:24:34 +01:00
René Kijewski
b4eb430d3a
Allow parallel compilation of serde
and serde_derive
2025-02-09 04:33:16 +01:00
René Kijewski
13eea3bd74
derive: fail if requested template block is missing
...
Previously it was only tested if the block exists if there were any
blocks. If there weren't any, then an empty result would be rendered.
2025-02-08 23:00:54 +01:00
René Kijewski
eb4806abcd
book: document blocks
2025-02-08 20:15:38 +01:00
René Kijewski
b8ac54b83d
derive: remove duplicated guard
2025-02-08 19:32:20 +01:00
René Kijewski
b2ccdd756f
derive: cannot use quote!
like quote_spanned!
2025-02-08 19:30:48 +01:00
Guillaume Gomez
a0e19aa37e
Improve code readability
2025-02-08 19:28:33 +01:00
Guillaume Gomez
77e846fc67
Merge pull request #337 from Kijewski/pr-blocks
...
derive: implement template attribute `blocks`
2025-02-08 11:06:21 +01:00
René Kijewski
137aaa0604
derive: implement template attribute blocks
2025-02-08 02:07:01 +01:00
René Kijewski
24c37c49f0
derive: replace some more format!
with format_args!
2025-02-07 23:47:20 +01:00
René Kijewski
f0ded0ba32
derive: add span to missing block message
2025-02-07 23:29:04 +01:00
René Kijewski
f759c364f9
derive: no rinja
on enum variants
2025-02-07 23:20:12 +01:00
René Kijewski
c13059096e
Fix error messages
2025-02-04 22:45:40 +01:00
Guillaume Gomez
f361293da7
Improve macro call arguments mismatch errors
2025-02-04 22:45:40 +01:00
René Kijewski
44965f54f5
derive: add option to specify rinja
path
2025-02-04 14:34:46 +01:00
René Kijewski
30e664182d
derive: for enum
s, let Self
refer to the original type
2025-02-04 01:24:59 +01:00