pipe/plumber.js
function (file, parent, type) {
        var fileDetails = path.parse(file),
            filePath = (type === 'static') ?
                path.join(fileDetails.dir, fileDetails.name + fileDetails.ext) :
                path.join(fileDetails.dir, fileDetails.name);

        return {
            name: filePath,
            parentDir: parent,
            href: parent + filePath
        };
    }
function (file, parent, type) {
        var fileDetails = path.parse(file),
            filePath = (type === 'static') ?
                path.join(fileDetails.dir, fileDetails.name + fileDetails.ext) :
                path.join(fileDetails.dir, fileDetails.name);

        return {
            name: filePath,
            parentDir: parent,
            href: parent + filePath
        };
    }
function ( file , parent , type ) { var fileDetails = path . parse ( file ) , filePath = ( type === 'static' ) ? path . join ( fileDetails . dir , fileDetails . name + fileDetails . ext ) : path . join ( fileDetails . dir , fileDetails . name ) ; return { name : filePath , parentDir : parent , href : parent + filePath } ; }
Resolves relative parent and own name of a specific file
@param  {String} file       Path to corresponding file
@param  {String} parent     Parent relative to the corresponding file
@param  {String} type       Type of the corresponding file [post, page, static]
@return {Object}            Object containing single content files from a given type
Resolves relative parent and own name of a specific file