Skip to content

Implement Values on tuple#391

Merged
Kijewski merged 3 commits intoaskama-rs:masterfrom
GuillaumeGomez:runtime-tuple
Apr 10, 2025
Merged

Implement Values on tuple#391
Kijewski merged 3 commits intoaskama-rs:masterfrom
GuillaumeGomez:runtime-tuple

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

When there is only one value, using a tuple seems preferrable. I found the need for it in rust-lang/docs.rs#2795. :)

@GuillaumeGomez GuillaumeGomez requested a review from Kijewski April 9, 2025 12:09
Comment thread book/src/runtime.md Outdated
`Err(ValueError)`.
`Err(askama::Error::ValueType)` or a `Err(askama::Error::ValueMissing)`.

Another example with a tuple:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Another example with a tuple:
Another example with a key-value tuple:

Kijewski
Kijewski previously approved these changes Apr 10, 2025
Copy link
Copy Markdown
Member

@Kijewski Kijewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@Kijewski Kijewski merged commit 5253e7c into askama-rs:master Apr 10, 2025
41 checks passed
@GuillaumeGomez GuillaumeGomez deleted the runtime-tuple branch April 10, 2025 09:22
@Kijewski
Copy link
Copy Markdown
Member

@GuillaumeGomez, do you want to do a point release? We only merged three PRs compared to the last release, but I don't think we have to wait until it's a big release. And a release every two or three weeks shouldn't cause too much work downstream.

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator Author

Sure, why not.

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.

2 participants