<% extends 'layout.html' %>

<% block container %>
<div id="mailpoet_automation_editor" class="edit-site"></div>

<script type="text/javascript">
  var mailpoet_locale_full = <%= json_encode(locale_full) %>;
  var mailpoet_automation_api = <%= json_encode(api) %>;
  var mailpoet_json_api = <%= json_encode(jsonapi) %>;
  var mailpoet_segments = <%= json_encode(segments) %>;
  var mailpoet_automation_registry = <%= json_encode(registry) %>;
  var mailpoet_automation_context = <%= json_encode(context) %>;
  var mailpoet_automation = <%= automation ? json_encode(automation) : 'undefined' %>;
</script>
<% endblock %>
