Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: sphericalhorse/spform
base: 08b0ebfab6
...
head fork: sphericalhorse/spform
compare: 3ef6bf46b1
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 7 additions and 5 deletions.
  1. +7 −5 app.js
View
12 app.js
@@ -66,11 +66,13 @@ var router_data = [
if (!err && stat.isFile()) {
fs.readFile(stylepath, function(err, data) {
try {
- stylus.render(data.toString(), function(err, css) {
- if (err) throw err
- res.writeHead(res.status, {'Content-Type': 'text/css'})
- res.end(css)
- })
+ stylus(data.toString())
+ .define('url', stylus.url({paths:[__dirname + '/public/style/images']}))
+ .render(function(err, css) {
+ if (err) throw err
+ res.writeHead(res.status, {'Content-Type': 'text/css'})
+ res.end(css)
+ })
} catch (e) {
res.status = 500
res.writeHead(res.status)

No commit comments for this range

Something went wrong with that request. Please try again.