waffel
Version:
Static site generation done tasty.
19 lines (16 loc) • 396 B
JavaScript
// Generated by CoffeeScript 1.11.1
var path;
path = require('path');
module.exports = {
relativisePath: function(filePath, basePath) {
if (filePath == null) {
filePath = '';
}
if (basePath == null) {
basePath = '';
}
filePath = path.normalize(filePath);
basePath = path.normalize(basePath);
return path.sep + path.relative(basePath, filePath);
}
};