Sha256: 0cc79124079b0af3ac86a5dbc4a76bc76736f0c4321733aee147de02e589b0e7

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <% application_name = SpiffyStoresApp.configuration.application_name %>
    <title><%= application_name %></title>
    <%= stylesheet_link_tag 'application' %>
    <%= javascript_include_tag 'application', "data-turbolinks-track" => true %>
    <%= csrf_meta_tags %>
  </head>

  <body>
    <div class="app-wrapper">
      <div class="app-content">
        <main role="main">
          <%= yield %>
        </main>
      </div>
    </div>

    <%= render 'layouts/flash_messages' %>

    <script src="https://spiffyserver.com/global/app.js?<%= Time.now.strftime('%Y%m%d%H') %>"></script>

    <script type="text/javascript">
      SpiffyApp.init({
        apiKey: "<%= SpiffyStoresApp.configuration.api_key %>",
        shopOrigin: "<%= "https://#{ @shop_session.url }" if @shop_session %>",
        debug: <%= Rails.env.development? ? 'true' : 'false' %>,
        forceRedirect: true
      });
    </script>

    <% if content_for?(:javascript) %>
      <div id="ContentForJavascript" data-turbolinks-temporary>
        <%= yield :javascript %>
      </div>
    <% end %>
  </body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spiffy_stores_app-8.2.11 lib/generators/spiffy_stores_app/install/templates/embedded_app.html.erb
spiffy_stores_app-8.2.10 lib/generators/spiffy_stores_app/install/templates/embedded_app.html.erb
spiffy_stores_app-8.2.9 lib/generators/spiffy_stores_app/install/templates/embedded_app.html.erb
spiffy_stores_app-8.2.8 lib/generators/spiffy_stores_app/install/templates/embedded_app.html.erb
spiffy_stores_app-8.2.7 lib/generators/spiffy_stores_app/install/templates/embedded_app.html.erb
spiffy_stores_app-8.2.6 lib/generators/spiffy_stores_app/install/templates/embedded_app.html.erb