Template play vars after reading them

Fixes #9242