Skip to content

Are global variables part of the context or not? #3971

Answered by stof
ericmorand asked this question in Q&A
Discussion options

You must be logged in to vote

They are added in the context for each template. So even when you don with_context=false, they are still there (they are not forwarded from the caller by the include function, but they are still inserted in the context by the Environment as they are global variables)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ericmorand
Comment options

@xabbuh
Comment options

@stof
Comment options

stof Jan 24, 2024
Collaborator

@ericmorand
Comment options

@stof
Comment options

stof Jan 24, 2024
Collaborator

Answer selected by ericmorand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants