Permalink
Browse files

FIX: use stylus nodes api to properly inject url literal

  • Loading branch information...
1 parent 0413236 commit 750f2c39a808005a63c1be76c7058f87005c5171 @jeffsigmon jeffsigmon committed Jul 22, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/express-mapped/app.js
  2. +1 −1 examples/express/app.js
@@ -17,7 +17,7 @@ versionator.createMapFromPath(__dirname + '/public', function(error, staticFileM
.set('warn', true)
.set('compress', true)
.define('versionPath', function(urlPath) {
- return 'url(' + mappedVersion.versionPath(urlPath) + ')';
+ return new stylus.nodes.Literal('url(' + mappedVersion.versionPath(urlPath) + ')');
});
}
View
@@ -22,7 +22,7 @@ app.configure(function(){
.set('warn', true)
.set('compress', true)
.define('versionPath', function(urlPath) {
- return 'url(' + basic.versionPath(urlPath) + ')';
+ return new stylus.nodes.Literal('url(' + basic.versionPath(urlPath) + ')');
});
}

0 comments on commit 750f2c3

Please sign in to comment.