locals was only being called on the request level if something on the same namespace had not been previously exposed globally - and even then, it was being called before the value itself had been saved. I moved the locals call to after the values have been transformed/saved, and made sure it is called every time for request-level calls to expose.
The only way around this would be to delay calling locals until right before the template is rendered. I couldn't see any obvious way of doing that.
locals
was only being called on the request level if something on the same namespace had not been previously exposed globally - and even then, it was being called before the value itself had been saved. I moved thelocals
call to after the values have been transformed/saved, and made sure it is called every time for request-level calls toexpose
.The only way around this would be to delay calling
locals
until right before the template is rendered. I couldn't see any obvious way of doing that.