Permalink
Browse files

Setup body tag for template inheritance and added some blocks

  • Loading branch information...
1 parent 5f87b93 commit 26cf3f47cb03cab0af7a3a4d1d1b478f99470793 Matthew Harrison committed Feb 25, 2012
Showing with 22 additions and 16 deletions.
  1. +22 −16 templates/views/layout.jade
@@ -17,19 +17,25 @@ html.no-js(lang='en')
meta(name="viewport", content='width=device-width, initial-scale=1')
link(rel='stylesheet', href='/css/style.css')
//-script(src='js/libs/modernizr-2.0.6.min.js')
- body!=body
- script(src='//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js')
- script
- window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\\/script>')
- //-script(defer, src='js/plugins.js')
- script(defer, src='/js/script.js')
- script(defer, src='/socket.io/socket.io.js')
- script
- var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
- g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
- s.parentNode.insertBefore(g,s)}(document,'script'));
- //if lt IE 7
- script(defer, src='//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js')
- script(defer)
- window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
+ body
+ block header
+
+ block content
+
+ block footer
+ footer
+ script(src='//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js')
+ script
+ window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\\/script>')
+ //-script(defer, src='js/plugins.js')
+ script(defer, src='/js/script.js')
+ script(defer, src='/socket.io/socket.io.js')
+ script
+ var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview'],['_trackPageLoadTime']];
+ (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
+ g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g,s)}(document,'script'));
+ //if lt IE 7
+ script(defer, src='//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js')
+ script(defer)
+ window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})

0 comments on commit 26cf3f4

Please sign in to comment.