{% macro renderAd(ad, options = {}) %} {% if ad.CODE %} {% set style = options.style|default('') %}
{% if ad.CODE is iterable and ad.CODE.visual_demo %}
{{ ad.CODE.name|e }}
{% else %} {{ ad.CODE }} {% endif %}
{% endif %} {% endmacro %}