index.html.patch in rails-boilerplate-0.1.5 vs index.html.patch in rails-boilerplate-0.1.6
- old
+ new
@@ -1,8 +1,8 @@
--- html5-boilerplate/index.html 2011-11-23 20:13:05.000000000 +0100
-+++ lib/generators/boilerplate/install/templates/index.html 2011-11-23 20:24:32.000000000 +0100
-@@ -12,47 +12,31 @@
++++ lib/generators/boilerplate/install/templates/index.html 2012-01-27 18:45:16.000000000 +0100
+@@ -12,50 +12,35 @@
More info: h5bp.com/b/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title></title>
+ <title><%= application_name %></title>
@@ -55,5 +55,17 @@
- <script defer src="js/script.js"></script>
+ <%%= javascript_include_tag "application" %>
<!-- end scripts -->
++ <%% if Rails.env.production? %>
+ <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
+ mathiasbynens.be/notes/async-analytics-snippet -->
+ <script>
+@@ -64,6 +49,7 @@
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g,s)}(document,'script'));
+ </script>
++ <%% end %>
+
+ <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
+ chromium.org/developers/how-tos/chrome-frame-getting-started -->