Sha256: 07b85b34de0f720107ab656ccb247e304dd1309da002a2d062eb4a97a9bf94c5

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 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>

    <%= content_tag(:div, nil, id: 'shopify-app-init', data: {
      api_key: ShopifyApp.configuration.api_key,
      shop_origin: ("https://#{ @shop_session.url }" if @shop_session),
      debug: Rails.env.development?
    } ) %>

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify_app-11.2.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-11.1.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-11.0.2 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-11.0.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-11.0.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-10.0.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-9.0.4 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-9.0.3 lib/generators/shopify_app/install/templates/embedded_app.html.erb