Browse files

Merge pull request #13 from LAMF/stylus_node_issue

FIX: use stylus nodes api to properly inject url literal
  • Loading branch information...
2 parents 53d91c6 + 750f2c3 commit 92ee669d2cd3b2b399cd09692775d008153db7fc @serby committed Jul 24, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/express-mapped/app.js
  2. +1 −1 examples/express/app.js
View
2 examples/express-mapped/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
2 examples/express/app.js
@@ -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 92ee669

Please sign in to comment.