Skip to content

Instantly share code, notes, and snippets.

@stream7
Forked from wlangstroth/index.html.slim
Created September 24, 2011 15:42
Show Gist options
  • Save stream7/1239463 to your computer and use it in GitHub Desktop.
Save stream7/1239463 to your computer and use it in GitHub Desktop.
html5boilerplate in slim for rails
doctype html
/[if lt IE 7]
| <html class="no-js ie6 oldie" lang="en">
/[if IE 7]
| <html class="no-js ie7 oldie" lang="en">
/[if IE 8]
| <html class="no-js ie8 oldie" lang="en">
/[if gte IE 8]
| <html class="no-js" lang="en">
head
meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"
title= "Site | #{yield :page_title}"
meta name="description" content="#{yield :meta_description}"
meta name="author" content="Will Langstroth"
meta name="keywords" content=""
meta name="viewport" content="width=device-width, initial-scale=1"
= stylesheet_link_tag :application
= csrf_meta_tag
= javascript_include_tag "libs/modernizr-2.0.6.min.js"
body
#container
header
#main role="main"
= yield
footer
script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"
javascript:
window.jQuery || document.write("<script src='/javascripts/jquery-1.6.2.min.js'>\\x3C/script>")
= javascript_include_tag :application
/[if lt IE 7]
script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"
javascript:
window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})
| </html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment