Sha256: f6ac2487977f65fd0c8acf705e9704502892d635afd3387cfab09f34f7a3012b

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <title><%%= content_for(:title) || "<%= app_name.titleize %>" %></title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="mobile-web-app-capable" content="yes">
    <%%= csrf_meta_tags %>
    <%%= csp_meta_tag %>

    <%%= yield :head %>

    <%%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
    <%%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>

    <link rel="icon" href="/icon.png" type="image/png">
    <link rel="icon" href="/icon.svg" type="image/svg+xml">
    <link rel="apple-touch-icon" href="/icon.png">

    <%- style_link_target = options[:skip_asset_pipeline] ? "\"application\"" : ":app" -%>
    <%- if options[:skip_hotwire] || options[:skip_javascript] -%>
    <%%= stylesheet_link_tag "css-zero/reset" %>
    <%%= stylesheet_link_tag "css-zero/variables" %>
    <%%= stylesheet_link_tag <%= style_link_target %> %>
    <%%= stylesheet_link_tag "css-zero/utilities" %>
    <%- else -%>
    <%%= stylesheet_link_tag "css-zero/reset", "data-turbo-track": "reload" %>
    <%%= stylesheet_link_tag "css-zero/variables", "data-turbo-track": "reload" %>
    <%%= stylesheet_link_tag <%= style_link_target %>, "data-turbo-track": "reload" %>
    <%%= stylesheet_link_tag "css-zero/utilities", "data-turbo-track": "reload" %>
    <%- end -%>
    <%- if importmaps? -%>
    <%%= javascript_importmap_tags %>
    <%- else -%>
    <%%= javascript_include_tag "application", "data-turbo-track": "reload", type: "module" %>
    <%- end -%>
  </head>

  <body class="header-layout">
    <header id="header">
      <div class="container">
        <h1 class="font-bold text-2xl"><%= app_name.titleize %></h1>
      </div>
    </header>

    <main id="main">
      <div class="container">
        <%%= yield %>
      </div>
    </main>
  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
css-zero-1.0.4 lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb
css-zero-1.0.3 lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb