{# If this item type is a widget output a standard widget wrapper, with data attributes #}
{%- if options.widget -%}
{%- endif -%}
{# If this item type has a wrapper element output that element, with an optional #}
{# CSS class as well. Helps implement widgets like pullquote and code sample #}
{%- if itemType.wrapper -%}
<{{ itemType.wrapper }}{%- if itemType.wrapperClass %} class="{{ itemType.wrapperClass }}" {% endif -%}>
{%- endif -%}
{# If this item type has plaintext content, output that content, escaped for HTML #}
{%- if itemType.plaintext -%}
{{ item.content | e }}
{%- endif -%}
{# If this item type contains markup, output the markup, unescaped #}
{%- if itemType.markup -%}
{{ item.content }}
{%- endif -%}
{# If this content type has a custom renderer, invoke that #}
{# Note that you can use the various simple wrapper options above too, or #}
{# just have a renderer that does its own wrapping #}
{%- if itemType.render -%}
{{ itemType.render({ item: item, options: options }) }}
{%- endif -%}
{# If this item type has a wrapper close the wrapper #}
{%- if itemType.wrapper -%}
{{itemType.wrapper }}>
{%- endif -%}
{# If this item type is a widget close the div #}
{%- if options.widget -%}