Thread:Extension talk:Scribunto/Need a page-wide global table

According to documentation every call to invoke function creates new execution context. But i need a feature to preserve some variable between invoke calls. For example, there could be some setting switched "on" or "off" at the beginning if the page (lua-call inside of the template) and some LUA-based templates that works differently basing on this switch value.