Sha256: 11e70cf94a160288a34e8c28a7ae3e1b14c6301938bcb6216e26e63db4f2181e

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 Bytes

Contents

<%%= javascript_include_tag "application" %>

<%%# Append your own using content_for :javascripts %>
<%%= yield :javascripts %>

<%%# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet %>
<%%# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/html5_rails.yml %>
<%% if !google_account_id.blank? %>
  <script>
    //<![CDATA[
      var _gaq=[['_setAccount','<%%= google_account_id %>'],['_trackPageview']];
      (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
      g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
      s.parentNode.insertBefore(g,s)}(document,'script'));
    //]]>
  </script>
<%% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html5-rails-0.0.7 lib/generators/html5/partial/templates/_javascripts.html.erb
html5-rails-0.0.6 lib/generators/html5/partial/templates/_javascripts.html.erb
html5-rails-0.0.5 lib/generators/html5/partial/templates/_javascripts.html.erb