{# widget always knows its options and data for player use. #}
{# however ginormous joined objects are elided. Use APIs to #}
{# get them if you need them (TODO: consider ways of #}
{# whitelisting them for the inline JSON attributes) #}
{# This wrapper exists for editor.js to inject contextual widget insertion controls into,
since those are area level controls rather than widget level #}
{%- if data.widget._edit and data.options.edit != false -%}
{%- include 'widgetControls.html' -%}
{%- endif -%}
{{ data.output() | safe }}