Created
July 19, 2011 08:19
-
-
Save joemccann/1091704 to your computer and use it in GitHub Desktop.
layout.ejs for Express app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en" manifest=""> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title><%= title %></title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0;"> | |
<link rel="shortcut icon" href="/favicon.ico"> | |
<link rel="apple-touch-icon" href="/apple-touch-icon.png"> | |
<link rel="stylesheet" href="css/style<% if (!debug){ %>-<%- version %>.min.css<% }else{%>.css<%}%>"> | |
<!-- Powered by: | |
'||''''| | |
|| . ... ...... ...... .. .... .... .... | |
||''| '|..' ||' ||||' ''.|...||||. ' ||. ' | |
|| .|. || ||| || . '|... '|.. | |
.||.....|.| ||. ||...'.||. '|...'|'..|'|'..|' | |
|| | |
|| | |
--> | |
</head> | |
<body> | |
<noscript>It's 2011, please enable JavaScript in your browser.</noscript> | |
<%- body %> | |
<script src="js/code<% if (!debug){ %>-<%- version %>.min.js<% }else{%>.js<%}%>"></script> | |
<script type="text/javascript"> | |
var _gaq=[['_setAccount','UA-XXXXXXX-X'],['_trackPageview']]; | |
!function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
}(); | |
</script> | |
<% if(debug) { %> | |
<script src="http://localhost:8080/target/target-script-min.js#anonymous"></script> | |
<% } %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment