2669 Commits

Author SHA1 Message Date
Benjamin Crouch II
ca8a52eb81
Update lib.rs To Fix Doc Formatting
Updated lib.rs to fix documentation formatting issues to better align with the format used for almost all of the sub attributes. Should resolve Issue #629 in the upstream repo.
2025-12-12 11:03:40 -06:00
Guillaume Gomez
a918f65937
Merge pull request #628 from askama-rs/dependabot/cargo/criterion-0.8
build(deps): update criterion requirement from 0.7 to 0.8
2025-12-02 13:42:56 +01:00
dependabot[bot]
8308d94248
build(deps): update criterion requirement from 0.7 to 0.8
Updates the requirements on [criterion](https://github.com/criterion-rs/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/criterion-rs/criterion.rs/releases)
- [Changelog](https://github.com/criterion-rs/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/criterion-rs/criterion.rs/compare/criterion-plot-v0.7.0...criterion-v0.8.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-version: 0.8.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 21:53:02 +00:00
Guillaume Gomez
1427493186
Merge pull request #626 from seijikun/mr-array-repeat
feat: Add support for array repeat syntax: `[<element_expr>; <cnt_expr>]`
2025-11-25 14:56:51 +01:00
Markus Ebner
633de66a65
feat: Add support for array repeat syntax: [<element_expr>; <cnt_expr>] 2025-11-25 14:35:31 +01:00
Guillaume Gomez
0495fc9be9
Merge pull request #627 from GuillaumeGomez/update-to-new-mdbook
Update to new mdbook version
2025-11-24 18:05:03 +01:00
Guillaume Gomez
448c6fee35 Remove removed multilingual configuration for mdbook 2025-11-24 17:45:59 +01:00
Guillaume Gomez
43a98a26df Update to new mdbook version 2025-11-24 17:42:44 +01:00
Guillaume Gomez
08f0c49a36
Merge pull request #614 from seijikun/mr-filterfn2
filter_fn: Further improve invalid invocation compile error messages
2025-11-07 12:01:15 +01:00
Markus Ebner
6bb01e8520
filter_fn: Further improve invalid invocation compile error messages
This round fixes compile error messages for when not all required arguments have been supplied.
2025-11-06 18:55:28 +01:00
Guillaume Gomez
c69ed123d7
Merge pull request #620 from tdelabro/compile-time-format-of-non-base-10-numbers
feat: format non base 10 numbers at compile time
2025-11-05 22:44:00 +01:00
Timothée Delabrouille
2c86bf80b1
Update askama_derive/src/generator.rs
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-11-05 16:38:07 -03:00
Timothée Delabrouille
9cf1bec51b
feat: format non base 10 numbers at compile time 2025-11-05 16:20:56 -03:00
Guillaume Gomez
36fb2caae8
Merge pull request #619 from fbilhaut/main
Fix nested includes not handled properly
2025-11-05 14:57:20 +01:00
Frédérik Bilhaut
69936c2c56 cargo fmt 2025-11-05 14:09:08 +01:00
Frédérik Bilhaut
b7c5578c00 fix nested includes not handled properly (#618) 2025-11-05 14:07:44 +01:00
Guillaume Gomez
6141d34a88
Merge pull request #617 from GuillaumeGomez/fix-ci
Fix CI errors
2025-11-05 11:34:28 +01:00
Guillaume Gomez
8038a8f92a Fix nightly output 2025-11-03 15:41:13 +01:00
Guillaume Gomez
cec1f04cee Fix fuzzing ui test 2025-11-03 15:39:55 +01:00
Guillaume Gomez
498bcf69d3 Fix new clippy lint 2025-11-03 15:39:55 +01:00
Guillaume Gomez
17feef3ccd
Merge pull request #616 from seijikun/mr-filterfn3
filter_fn: Aggressive inlining for builder invocation methods
2025-11-02 10:09:31 +01:00
Markus Ebner
1cb1cebad9
filter_fn: Aggressive inlining for builder invocation methods 2025-11-01 16:13:48 +01:00
Guillaume Gomez
650efd9993
Merge pull request #545 from seijikun/mr-filterfn
Add askama::filter_fn proc-macro for custom filters with named/optional arg support
2025-10-29 22:35:12 +01:00
Markus Ebner
57be8a67a7
Book: Update documentation on custom filters for new filter_fn macro 2025-10-29 20:40:41 +01:00
René Kijewski
fc96cda272
We need syn/full 2025-10-29 16:13:40 +01:00
René Kijewski
c128373a40
Move filter_fn code generation into askama_derive 2025-10-29 16:13:40 +01:00
Markus Ebner
1055ae0abd
Improve compiler errors for invocations with too many arguments 2025-10-29 16:13:36 +01:00
Markus Ebner
ab28d38460
Add ui-test for filter_fn signature validation 2025-10-29 15:45:24 +01:00
Markus Ebner
c292504276
Add unit-test checking filter_fn parsing/codegen 2025-10-29 15:45:24 +01:00
Markus Ebner
38b2c3f536
Port askama to new filter_fn proc-macro-attr 2025-10-29 15:45:24 +01:00
Markus Ebner
21fec3be07
Add filter_fn proc-macro 2025-10-29 15:45:24 +01:00
Guillaume Gomez
3e033c489a
Merge pull request #612 from askama-rs/dependabot/github_actions/actions/upload-artifact-5
build(deps): bump actions/upload-artifact from 4 to 5
2025-10-26 21:33:05 +01:00
dependabot[bot]
fbfbf4d851
build(deps): bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 20:10:47 +00:00
Guillaume Gomez
d220cd5113
Merge pull request #602 from VojtaStanek/struct-expr
Add support for struct expressions
2025-10-19 16:33:39 +02:00
Guillaume Gomez
04cf06beb4 Limit maximum number of references in generics to prevent syn stack overflow 2025-10-18 22:04:50 +02:00
Guillaume Gomez
7fe8788f82
Merge pull request #587 from FalkWoldmann/patch-1
Fix formatting of 'safe' filter in template_syntax.md
2025-10-17 10:34:09 +02:00
Falk Woldmann Lu
9c4918b738 Fix formatting of 'safe' filter in template_syntax.md 2025-10-16 22:02:50 +02:00
Guillaume Gomez
b2f401c0ec
Merge pull request #607 from askama-rs/dependabot/github_actions/github/codeql-action-4
build(deps): bump github/codeql-action from 3 to 4
2025-10-16 22:01:13 +02:00
Guillaume Gomez
b71d457f9a
Merge pull request #606 from askama-rs/dependabot/github_actions/astral-sh/setup-uv-7
build(deps): bump astral-sh/setup-uv from 6 to 7
2025-10-16 22:00:56 +02:00
Guillaume Gomez
e96bca48d2 Update branch name in github CI workflow 2025-10-16 13:28:32 +02:00
dependabot[bot]
32cefb20b3
build(deps): bump github/codeql-action from 3 to 4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-07 20:22:04 +00:00
dependabot[bot]
448e2eb996
build(deps): bump astral-sh/setup-uv from 6 to 7
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 6 to 7.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v6...v7)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-07 20:22:00 +00:00
Guillaume Gomez
334519e7cd Greatly improve errors of invalid struct expression 2025-10-05 11:11:33 +02:00
Guillaume Gomez
5e5d57628a Improve parsing errors and ui tests 2025-10-03 00:39:06 +02:00
Guillaume Gomez
b3be250374 Add missing fuzzing testcase 2025-10-02 19:25:11 +02:00
Guillaume Gomez
1e73cc2d15
Merge pull request #604 from GuillaumeGomez/rm-removed-feature
Remove removed nightly feature
2025-10-02 04:12:13 +02:00
Guillaume Gomez
0c229240e1 Fix typo 2025-09-30 22:13:21 +02:00
Guillaume Gomez
3d67bbd6c5 Remove removed nightly feature 2025-09-30 22:11:29 +02:00
Guillaume Gomez
d1b8f1c262
Merge pull request #603 from VojtaStanek/book-syntax-summary
book: add syntax summary
2025-09-28 11:06:00 +02:00
Vojta Staněk
c21b3041d8
Add support for struct expressions: add to book 2025-09-28 10:23:09 +02:00