Browse files

stylus

  • Loading branch information...
1 parent 002fd10 commit b5fe34cf64ae9419b4f442a01463e323003ac6d5 @tj tj committed Dec 18, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −0 app.js
  3. +1 −0 package.json
  4. 0 public/stylesheets/{style.css → main.styl}
  5. +1 −1 views/layout.jade
View
1 .gitignore
@@ -1 +1,2 @@
node_modules
+*.css
View
2 app.js
@@ -4,6 +4,7 @@
*/
var express = require('express')
+ , stylus = require('stylus')
, redis = require('redis')
, http = require('http');
@@ -21,6 +22,7 @@ app.configure(function(){
app.set('root', __dirname);
app.use(express.favicon());
app.use(express.logger('dev'));
+ app.use(stylus.middleware({ src: __dirname + '/public' }));
app.use(express.static(__dirname + '/public'));
app.use(app.router);
});
View
1 package.json
@@ -8,5 +8,6 @@
, "palette": "*"
, "redis": "0.7.x"
, "canvas": "0.8.x"
+ , "stylus": "0.21.x"
}
}
View
0 public/stylesheets/style.css → public/stylesheets/main.styl
File renamed without changes.
View
2 views/layout.jade
@@ -2,7 +2,7 @@
html
head
title Screenshots
- link(rel='stylesheet', href='/stylesheets/style.css')
+ link(rel='stylesheet', href='/stylesheets/main.css')
body
block content
script(src='/javascripts/vendor/whiskers.js')

0 comments on commit b5fe34c

Please sign in to comment.