Make globals available to template during render