Permalink
Browse files

Updated to jade

  • Loading branch information...
1 parent 80a0ebd commit 1b8341ab1b872b6d829a4569cc511e8a5efbbd69 @robrighter committed Dec 29, 2011
Showing with 19 additions and 18 deletions.
  1. +0 −3 .gitmodules
  2. +16 −10 bin/initproject.sh
  3. +1 −1 templates/app/server.js
  4. +2 −4 views/500.ejs
View
@@ -1,3 +0,0 @@
-[submodule "deps/jade-html5-boilerplate"]
- path = deps/jade-html5-boilerplate
- url = git://github.com/dmotz/jade-html5-boilerplate.git
View
@@ -1,18 +1,24 @@
#!/bin/sh
-
-echo "Updating git submodules"
-git submodule update --init --recursive
-
-echo "Creating static folders"
+echo "Creating necessary folders"
mkdir ./static/images
mkdir ./static/css
+mkdir ./views
+mkdir ./models
echo "Copying Markup and CSS BoilerPlate..."
-cp ./lib/html5-boilerplate/404.html ./views/404.ejs
-cp ./lib/html5-boilerplate/js/plugins.js ./static/js/plugins.js
-cp ./lib/html5-boilerplate/css/handheld.css ./static/css/handheld.css
-cp ./lib/html5-boilerplate/css/style.css ./static/css/style.css
-cp ./lib/html5-boilerplate/robots.txt ./static/robots.txt
+cp ./templates/app/server.js ./server.js
+curl https://raw.github.com/h5bp/html5-boilerplate/master/css/style.css > ./static/css/style.css
+cp ./templates/views/500.jade ./views/500.jade
+cp ./templates/views/404.jade ./views/404.jade
+cp ./templates/views/index.jade ./views/index.jade
+cp ./templates/views/layout.jade ./views/layout.jade
+# TODO copy over the js
+
+echo "Setting up the dependancies from NPM..."
+npm install express
+npm install jade
+npm install mongoose
+npm install socket.io
echo "Removing the stuff you dont want..."
rm -rf .git
@@ -18,7 +18,7 @@ server.configure(function(){
//setup the errors
server.error(function(err, req, res, next){
if (err instanceof NotFound) {
- res.render('404.ejs', { locals: {
+ res.render('404.jade', { locals: {
header: '#Header#'
,footer: '#Footer#'
,title : '404 - Not Found'
View
@@ -10,13 +10,11 @@ a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
</style>
-
-
-
<details>
<summary><h1>The Server Encountered and Error</h1></summary>
<p><span frown>:(</span></p>
<div>
<%= error %>
</div>
-</details>
+</details>
+

0 comments on commit 1b8341a

Please sign in to comment.