'Unindex a template from the `templates` container.
:param tpl: The template to unindex'

def unindex_template(self, tpl):

    name = getattr(tpl, 'name', '')
    try:
        del self.name_to_template[name]
    except KeyError:
        pass
