Permalink
Browse files

Merge branch 'new_branch_name'

  • Loading branch information...
2 parents c6515a6 + cec9966 commit fa7a95a72fa80bbb6c752087dac25a571a5a7183 @serby committed Feb 2, 2012
@@ -16,7 +16,9 @@ versionator.createMapFromPath(__dirname + '/public', function(error, staticFileM
.set('filename', path)
.set('warn', true)
.set('compress', true)
- .define('versionPath', mappedVersion.versionPath);
+ .define('versionPath', function(urlPath) {
+ return 'url(' + mappedVersion.versionPath(urlPath) + ')';
+ });
}
// Configuration
@@ -7,4 +7,4 @@ a
#break
width 100%
height 10px
- background-image: url(versionPath('/images/background.png'))
+ background-image: versionPath("/images/background.png")
View
@@ -21,7 +21,9 @@ app.configure(function(){
.set('filename', path)
.set('warn', true)
.set('compress', true)
- .define('versionPath', basic.versionPath);
+ .define('versionPath', function(urlPath) {
+ return 'url(' + basic.versionPath(urlPath) + ')';
+ });
}
app
@@ -7,4 +7,5 @@ a
#break
width 100%
height 10px
- background-image: url(versionPath('/images/background.png'))
+
+ background-image: versionPath("/images/background.png")

0 comments on commit fa7a95a

Please sign in to comment.