Sha256: 48624fe8437f6640008cdb97137d03e9c99340397c4fbf3391cde69ca99b82c3
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
-# Grab Google CDN's jQuery - if defined?(google_api_key) && !google_api_key.blank? = javascript_include_tag "http://www.google.com/jsapi?key=#{google_api_key}" :javascript google.load("jquery", "1.4.2"); - else = javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" -# fall back to local jQuery if necessary :javascript !window.jQuery && document.write('#{ escape_javascript(javascript_include_tag "jquery-1.4.2.min") }') = javascript_include_tag 'rails', 'plugins', 'application' /[if lt IE 7 ] = javascript_include_tag 'dd_belatedpng' -# Append your own using content_for :javascripts = yield :javascripts -# yui profiler and profileviewer - if Rails.env == 'development' = javascript_include_tag 'profiling/yahoo-profiling.min', 'profiling/config' -# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet -# define a google_account_id helper that returns your site's ID - if defined?(google_account_id) && !google_account_id.blank? :javascript var _gaq = [['_setAccount', '#{google_account_id}'], ['_trackPageview']]; (function(d, t) { var g = d.createElement(t), s = d.getElementsByTagName(t)[0]; g.async = true; g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; s.parentNode.insertBefore(g, s); })(document, 'script');
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
html5-boilerplate-0.1.7 | templates/project/_javascripts.html.haml |
html5-boilerplate-0.1.6 | templates/project/_javascripts.html.haml |