Sha256: d40dc022f1a1cfb2de0a6a1fbc880967db695d3d94c3599f707a1483623d1220

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Shopify Embedded Example App</title>
    <%= stylesheet_link_tag 'application' %>
    <%= 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>

    <%= javascript_include_tag 'application', "data-turbolinks-track" => true %>

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shopify_app-7.0.11 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.10 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.9 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.8 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.7 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.6 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.5 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.4 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.2 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.1 lib/generators/shopify_app/install/templates/embedded_app.html.erb
shopify_app-7.0.0 lib/generators/shopify_app/install/templates/embedded_app.html.erb