Permalink
Browse files

Asset Loading

  • Loading branch information...
Dinesh-Ramakrishnan committed Jun 13, 2012
1 parent 2ba3a35 commit 04f779a84c0e7ea6a4565688017f2cb56e3afb54
Showing with 20 additions and 19 deletions.
  1. +1 −0 server.js
  2. +19 −19 views/layout.ejs
View
@@ -3,6 +3,7 @@ var app = require('./app').init(process.env.VCAP_APP_PORT);
var locals = {
title: 'NodeJS Boostrap using Express / EJS / Twitter Bootstrap / CSS3',
description: 'Node Express HTML5 & CSS3',
+ url:'http://prdexample.cloudfoundry.com/',
author: 'Alexandre Collin'
};
View
@@ -8,25 +8,25 @@
<meta name="author" content="<%= author %>">
<!-- Le styles -->
- <link href="css/bootstrap.css" rel="stylesheet">
+ <link href="<%= url%>css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
- <link href="css/bootstrap-responsive.css" rel="stylesheet">
+ <link href="<%= url%>css/bootstrap-responsive.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
- <link rel="shortcut icon" href="img/favicon.ico">
- <link rel="apple-touch-icon" href="img/apple-touch-icon.png">
- <link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
+ <link rel="shortcut icon" href="<%= url%>img/favicon.ico">
+ <link rel="apple-touch-icon" href="<%= url%>img/apple-touch-icon.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="<%= url%>img/apple-touch-icon-72x72.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="<%= url%>img/apple-touch-icon-114x114.png">
</head>
<body>
@@ -42,20 +42,20 @@
<script>window.jQuery || document.write('<script src="js/jquery-1.7.1.min.js"><\/script>')</script>
- <script src="js/bootstrap.min.js"></script>
+ <script src="<%= url%>js/bootstrap.min.js"></script>
<!--
- <script src="js/bootstrap-transition.js"></script>
- <script src="js/bootstrap-alert.js"></script>
- <script src="js/bootstrap-modal.js"></script>
- <script src="js/bootstrap-dropdown.js"></script>
- <script src="js/bootstrap-scrollspy.js"></script>
- <script src="js/bootstrap-tab.js"></script>
- <script src="js/bootstrap-tooltip.js"></script>
- <script src="js/bootstrap-popover.js"></script>
- <script src="js/bootstrap-button.js"></script>
- <script src="js/bootstrap-collapse.js"></script>
- <script src="js/bootstrap-carousel.js"></script>
- <script src="js/bootstrap-typeahead.js"></script>
+ <script src="<%= url%>js/bootstrap-transition.js"></script>
+ <script src="<%= url%>js/bootstrap-alert.js"></script>
+ <script src="<%= url%>js/bootstrap-modal.js"></script>
+ <script src="<%= url%>js/bootstrap-dropdown.js"></script>
+ <script src="<%= url%>js/bootstrap-scrollspy.js"></script>
+ <script src="<%= url%>js/bootstrap-tab.js"></script>
+ <script src="<%= url%>js/bootstrap-tooltip.js"></script>
+ <script src="<%= url%>js/bootstrap-popover.js"></script>
+ <script src="<%= url%>js/bootstrap-button.js"></script>
+ <script src="<%= url%>js/bootstrap-collapse.js"></script>
+ <script src="<%= url%>js/bootstrap-carousel.js"></script>
+ <script src="<%= url%>js/bootstrap-typeahead.js"></script>
-->

0 comments on commit 04f779a

Please sign in to comment.