Skip to content

Instantly share code, notes, and snippets.

@anthonyringoet
Created December 8, 2011 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonyringoet/1447887 to your computer and use it in GitHub Desktop.
Save anthonyringoet/1447887 to your computer and use it in GitHub Desktop.
HAML Boiler Plate
!!! 5
/[if lt IE 7] <html lang="en" class="no-js ie6">
/[if IE 7 ] <html lang="en" class="no-js ie7">
/[if IE 8 ] <html lang="en" class="no-js ie8">
/[if IE 9 ] <html lang="en" class="no-js ie9">
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
%head
%meta{ "charset" => "utf-8" }/
= csrf_meta_tag
%meta{ "http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1" }/
%meta{:name => "viewport", :content => "width=device-width; initial-scale=1.0; maximum-scale=1.0;"}/
%meta{:content => "", :name => "description"}/
%meta{:content => "", :name => "author"}/
%title= "Title"
= stylesheet_link_tag "style", "application", "960", :media => "all", :cache => "style"
= javascript_include_tag "modernizr", "respond", :cache => "modernizer-respond"
%body
= yield
= javascript_include_tag :defaults, :cache => true
:javascript
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[1];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment