<% extends 'layout.html' %>

<% block content %>
<div id="mailpoet_automation_templates"></div>
<% endblock %>

<% block after_javascript %>
<script type="text/javascript">
  var mailpoet_automation_api = <%= json_encode(api) %>;
  var mailpoet_automation_templates = <%= json_encode(templates) %>;
</script>
<%= javascript('automation_templates.js')%>
<% endblock %>

<% block after_css %>
<%= stylesheet('mailpoet-automation-templates.css') %>
<% endblock %>
