Skip to content

Instantly share code, notes, and snippets.

@piersadrian
Created February 26, 2014 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save piersadrian/9236168 to your computer and use it in GitHub Desktop.
Save piersadrian/9236168 to your computer and use it in GitHub Desktop.
yeoman, bower, h5bp, angular-compatible index.jade
doctype html
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width')
//- Place favicon.ico and apple-touch-icon.png in the root directory
// build:css styles/vendor.css
// bower:css
link(rel='stylesheet', href='bower_components/sass-bootstrap/dist/css/bootstrap.css')
// endbower
// endbuild
// build:css({.tmp,app}) styles/main.css
link(rel='stylesheet', href='styles/main.css')
// endbuild
body(ng-app='ngApp')
| <!--[if lt IE 7]>
p.browsehappy
| You are using an
strong outdated
| browser. Please
a(href='http://browsehappy.com/') upgrade your browser
| to improve your experience.
| <![endif]-->
.container(ng-view='')
//- Google Analytics: change UA-XXXXX-X to be your site's ID
script.
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-X');
ga('send', 'pageview');
| <!--[if lt IE 9]>
script(src='bower_components/es5-shim/es5-shim.js')
script(src='bower_components/json3/lib/json3.min.js')
| <![endif]-->
// build:js scripts/vendor.js
// bower:js
script(src='bower_components/jquery/jquery.js')
script(src='bower_components/angular/angular.js')
script(src='bower_components/sass-bootstrap/dist/js/bootstrap.js')
script(src='bower_components/angular-resource/angular-resource.js')
script(src='bower_components/angular-cookies/angular-cookies.js')
script(src='bower_components/angular-sanitize/angular-sanitize.js')
script(src='bower_components/angular-route/angular-route.js')
// endbower
// endbuild
// build:js({.tmp,app}) scripts/scripts.js
script(src='scripts/app.js')
script(src='scripts/controllers/main.js')
// endbuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment