Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Last active December 23, 2015 05:29
Show Gist options
  • Save yoshuawuyts/6586908 to your computer and use it in GitHub Desktop.
Save yoshuawuyts/6586908 to your computer and use it in GitHub Desktop.
HTML 5 boilerplate (H5BP) for Jade with Angular and jQuery support.
!!! 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 and description
title A sails application
meta(name='description', content='A sails application')
//- Viewport mobile tag for sensible mobile support
meta(name="viewport",content="width=device-width, initial-scale=1, maximum-scale=1")
//- Set favicon
link(rel='shortcut icon', href='favicon.ico', type='image/x-icon')
//- STYLES
link(rel="stylesheet", href="/min/production.css")
//- STYLES END
body
.chromeframe
//if lt IE 7
p.chromeframe.
You are using an <strong>outdated</strong> 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.
.scripts
//- Angular with fallback to native (uncomment to activate)
//- script(type="text/javascript", src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js")
//- script window.angular || document.write('<script src="js/angular.min.js"><\/script>')
//- jQuery with fallback to native (uncomment to activate)
//- script(src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js')
//- script window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\\/script>')
//- SCRIPTS
script(type="text/javascript", src="/concat/production.js")
//- SCRIPTS END
script.
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src='//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