complete redesign: use nodejs on server instead of php - documentation to be updated
This commit is contained in:
16
nodejs/node_modules/stylus/lib/functions/pathjoin.js
generated
vendored
Normal file
16
nodejs/node_modules/stylus/lib/functions/pathjoin.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
var path = require('path');
|
||||
|
||||
/**
|
||||
* Peform a path join.
|
||||
*
|
||||
* @param {String} path
|
||||
* @return {String}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
(module.exports = function pathjoin(){
|
||||
var paths = [].slice.call(arguments).map(function(path){
|
||||
return path.first.string;
|
||||
});
|
||||
return path.join.apply(null, paths).replace(/\\/g, '/');
|
||||
}).raw = true;
|
Reference in New Issue
Block a user