Advertisement
ealbinu

HTML5 Boilerplate to HAML

Feb 15th, 2012
3,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !!!
  2. %html{:lang=>"es"}
  3.     %head
  4.         %meta{:charset=>"utf-8"}/
  5.         %meta{"http-equiv"=>"X-UA-Compatible", :content=>"IE=edge,chrome=1"}/
  6.         %title Título
  7.         %meta{:name=>"description", :content=>""}/
  8.         %meta{:name=>"viewport", :content=>"width=device-width"}/
  9.         %link{:rel=>"stylesheet", :href=>"css/style.css"}/
  10.         /[if lt IE 9]
  11.             %script{:src=>"//html5shiv.googlecode.com/svn/trunk/html5.js"}
  12.     %body
  13.         /[if lt IE 7]
  14.             %p.chromeframe
  15.                 <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.
  16.         %header
  17.             %h1
  18.                 %a{:href=>"index.html"}
  19.                     Título
  20.         %section
  21.             %article
  22.         %footer
  23.         %script{:src=>"//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"}
  24.         %script{:src=>"js/script.js"}
  25.         %script
  26.             var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
  27.             (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
  28.             g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
  29.             s.parentNode.insertBefore(g,s)}(document,'script'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement