{% macro render_item_value(v, width) -%}
    {% set val = v | string | trim %}
    {% if val|length and val.lower().endswith(('.jpg', '.jpeg', '.png', '.gif', '.bmp')) %}
        {# Ends with image extension: render img element with link to image #}
        
    {% elif v is string or v is number %}
        {{ val | urlize() }}
    {% elif v is mapping %}
        
| {{ gettext('Identifier') }} | {{ obj['id'] }} | 
| {{ gettext(a) }} | {{ render_item_value( b, 120 ) }} |