What is the equivalent of template context in Pyramid?
Does the IBeforeRender event in pyramid have anything to with this? I've gone through the official documentation but diffcult to understand what the IBeforeRender event is exactly.
It seems to me, that the solutions above do not exactly copy the behavior of Pylons template context. If one renders a page request in Pylons and adds some value a to the context c, it is accessible in the template as c.a. However, if one renders another request, this key/value will be dropped.
The Pyramid solutions above show another behavior. the key/value c.a will stay in the template context. Sometimes, this is not desired. Are there any suggestions to fix this difference?
Equivalent of template context in Pyramid (pylons user)