Skip to content

derive: prefix more generated variables with __askama#444

Merged
Kijewski merged 4 commits intoaskama-rs:masterfrom
Kijewski:pr-__askama
May 18, 2025
Merged

derive: prefix more generated variables with __askama#444
Kijewski merged 4 commits intoaskama-rs:masterfrom
Kijewski:pr-__askama

Conversation

@Kijewski
Copy link
Copy Markdown
Member

I want to say "prefix all generated variables with __askama", but I'm sure I overlooked some variables. :)

Rationale: We deny defining variables with this naming scheme, so this change makes sure that the user does not accidentally shadow a generated variable.

Squash before merging.

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Looks like a good idea! 👍

@Kijewski Kijewski merged commit 3e5562d into askama-rs:master May 18, 2025
38 checks passed
@Kijewski Kijewski deleted the pr-__askama branch May 18, 2025 21:05
@Kijewski Kijewski mentioned this pull request Jun 6, 2025
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