Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

stylus

  • Loading branch information...
commit b5fe34cf64ae9419b4f442a01463e323003ac6d5 1 parent 002fd10
@tj authored
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')
Please sign in to comment.
Something went wrong with that request. Please try again.