Skip to content

If using local variable as value when creating a new variable, do not put it behind a reference#392

Merged
Kijewski merged 2 commits intoaskama-rs:masterfrom
GuillaumeGomez:var-declaration
Apr 11, 2025
Merged

If using local variable as value when creating a new variable, do not put it behind a reference#392
Kijewski merged 2 commits intoaskama-rs:masterfrom
GuillaumeGomez:var-declaration

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Fixes #386.

Nothing tricky here, just an extra check. However, it adds more tests to enforce it and added explanations about it in the book. :)

@GuillaumeGomez GuillaumeGomez requested a review from Kijewski April 10, 2025 21:25
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.

Thank you, esp. for adding a documentation!

@Kijewski Kijewski merged commit c76d1a2 into askama-rs:master Apr 11, 2025
41 checks passed
@GuillaumeGomez GuillaumeGomez deleted the var-declaration branch April 11, 2025 08:54
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.

Inconsistent (or incorrect) reference semantics of {% let %}

2 participants