{% macro details(user) -%} {% if user %} Показать контакты Профиль {% if user.get('phone')%} {{user.phone.split(',')[-1].strip()}} {% endif %} {% if user.get('email')%} {{user.email}} {% endif %} Написать {% if user.get('phone')%} {% else %} {% endif %} {% endif %} {%- endmacro %} {% macro style() -%} {%- endmacro %}