Does a context expression basically "freeze" all content generated up to the point of the expression in order to compute things?
Cuz i dont really understand how nested context expressions work if not something similar described above and would appreciate a cohesive answer.
According to the docs:
"Typst cannot know all the styles that will apply as set rules can be applied to content after it has been constructed. Below, text.lang is already computed when the template function is applied. As such, it cannot possibly be aware of the language change to French in the template."
?render
#let template(body) = {
set text(lang: "fr")
upper(body)
}
#set text(lang: "de")
#context [
#show: template
#text.lang \
#context text.lang
]