Sha256: f91c58968c016678f5171f1f54381fdb3f124111813041006a4f2f0c2887bd40

Contents?: true

Size: 1.14 KB

Versions: 28

Compression:

Stored size: 1.14 KB

Contents

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <% application_name = ShopifyApp.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://cdn.shopify.com/s/assets/external/app.js?<%= Time.now.strftime('%Y%m%d%H') %>"></script>

    <script type="text/javascript">
      ShopifyApp.init({
        apiKey: "<%= ShopifyApp.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

28 entries across 28 versions & 1 rubygems

Version Path
shopify_app-8.6.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.6.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.5.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.5.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.4.2 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.4.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.4.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.3.2 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.3.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.3.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.2.6 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.2.5 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.2.4 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.2.2 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.2.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.2.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.1.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-8.0.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.4.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.3.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb