'Reload templates when they are changed. Used by
:meth:`create_jinja_environment`.
This attribute can be configured with :data:`TEMPLATES_AUTO_RELOAD`. If
not set, it will be enabled in debug mode.
.. versionadded:: 1.0
This property was added but the underlying config and behavior
already existed.'

def _get_templates_auto_reload(self):

    rv = self.config['TEMPLATES_AUTO_RELOAD']
    return (rv if (rv is not None) else self.debug)
