calling a macro with ``_self.macro`` is deprecated and will not work anymore in Twig 2.0. You need to import them.

```jinja
{% import _self as macro %}

{{ macro.render_identity(message.from)`` }}
```

or

```jinja
{% from _self import render_identity %}

{{ render_identity(message.from)`` }}
```