{% import 'keg-elements/forms/horizontal-b3.html' as dynamic_render %}
{% import 'keg-elements/forms/horizontal-b4.html' as b4_render %}
{% import 'keg-elements/forms/horizontal-static.html' as static_render %}

{%- if _ is not defined -%}
    {% macro _(message) -%}
        {{ message }}
    {%- endmacro %}
{%- endif -%}

<div id="dynamic">
    <div id="with-caller">
        {% call dynamic_render.section(_('My Heading'), form) %}
            {{ dynamic_render.field(form[field_name]) }}
        {% endcall %}
    </div>
    <div id="with-field-name">
        {{ dynamic_render.section(_('My Heading'), form, [field_name]) }}
    </div>
</div>

<div id="b4">
    <div id="with-caller">
        {% call b4_render.section(_('My Heading'), form) %}
            {{ b4_render.field(form[field_name]) }}
        {% endcall %}
    </div>
    <div id="with-field-name">
        {{ dynamic_render.section(_('My Heading'), form, [field_name]) }}
    </div>
</div>

<div id="static">
    <div id="with-caller">
        {% call static_render.section(_('My Heading'), form) %}
            {{ static_render.field(form[field_name]) }}
        {% endcall %}
    </div>
    <div id="with-field-name">
        {{ static_render.section(_('My Heading'), form, [field_name]) }}
    </div>
</div>
