Skip to content

Instantly share code, notes, and snippets.

@zjr
Forked from xtian/html5boilerplate.jade
Last active December 15, 2015 03:09
Fork geared towards using RequireJS.
!!! 5
//if lt IE 7
<html class="no-js lt-ie9 lt-ie8 lt-ie7">
//if IE 7
<html class="no-js lt-ie9 lt-ie8">
//if IE 8
<html class="no-js lt-ie9">
//[if gt IE 8]><!
html(class='no-js')
//<![endif]
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width')
link(rel='stylesheet', href='styles/main.css')
// build:js scripts/vendor/modernizr/js
script(src='components/modernizr/modernizr.js')
// endbuild
body
//if lt IE 7
p.chromeframe.
You are using an outdated browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a> or
<a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a>
to improve your experience.
// build:js scripts/main.js
script(data-main='scripts/main', src='components/requirejs/require.js')
// endbuild
// Google Analytics: change UA-XXXXX-X to be your site's ID.
script
var _gaq=[['_setAccount','UA-XXXXX-X'],['_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'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment