Adding `window._templateData` to all templates