Skip to content

Instantly share code, notes, and snippets.

@alvaromuir
Last active December 23, 2015 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvaromuir/6660461 to your computer and use it in GitHub Desktop.
Save alvaromuir/6660461 to your computer and use it in GitHub Desktop.
Ember + RequireJS Index.jade. Includes '#webapp' div ID to use for Ember root element.
!!! 5
//if lt IE 7
html.no-js.lt-ie9.lt-ie8.lt-ie7
//if IE 7
html.no-js.lt-ie9.lt-ie8
//if IE 8
html.no-js.lt-ie9
// [if gt IE 8] <!
html.no-js
// <![endif]
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title BlackTechiesHome
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(.tmp) styles/main.css
link(rel='stylesheet', href='styles/main.css')
// endbuild
// build:js scripts/vendor/modernizr.js
script(src='bower_components/modernizr/modernizr.js')
// endbuild
body
//if lt IE 10
p.browsehappy
| You are using an
strong outdated
| browser. Please
a(href='http://browsehappy.com/') upgrade your browser
| to improve your experience.
.container
.header
ul.nav.nav-pills.pull-right
li.active
a(href='#') Home
li
a(href='#') About
li
a(href='#') Contact
h3.text-muted BlackTechiesHome
.jumbotron
h1 'Allo, 'Allo!
p.lead Always a pleasure scaffolding your apps.
p
a.btn.btn-lg.btn-success(href='#') Splendid!
.row.marketing
.col-lg-6
h4 HTML5 Boilerplate
p
| HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites.
h4 Bootstrap
p
| Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
h4 Modernizr
p
| Modernizr is an open-source JavaScript library that helps you build the next generation of HTML5 and CSS3-powered websites.
h4 RequireJS
p
| RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node.
.footer
p ♥ from the Yeoman team
// build:js scripts/vendor.js
// bower:js
script(src='bower_components/jquery/jquery.js')
// endbower
// endbuild
// Google Analytics: change UA-XXXXX-X to be your site's ID.
script.
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X');ga('send','pageview');
// build:js scripts/main.js
script(data-main='scripts/main', src='bower_components/requirejs/require.js')
// endbuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment