Skip to content

Add support for tuple, array and slice in type generics#721

Merged
GuillaumeGomez merged 3 commits intoaskama-rs:mainfrom
GuillaumeGomez:extend-generics
Mar 29, 2026
Merged

Add support for tuple, array and slice in type generics#721
GuillaumeGomez merged 3 commits intoaskama-rs:mainfrom
GuillaumeGomez:extend-generics

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

This PR adds the possibility to use tuples, arrays and slices and generic parameters, for example:

{{ f::<()>() }}
{{ f::<[u32]>() }}
{{ f::<[u32; 2]>() }}

@GuillaumeGomez GuillaumeGomez merged commit eca7216 into askama-rs:main Mar 29, 2026
50 checks passed
@GuillaumeGomez GuillaumeGomez deleted the extend-generics branch March 29, 2026 20:35
@GuillaumeGomez GuillaumeGomez mentioned this pull request Apr 5, 2026
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant