-
-
Save laktek/7919236 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var generate_tag_helpers_with_basepath = function(basePath) { | |
return { | |
relative_path: function() { | |
var pathDepth = basePath.split('/').length -2; | |
var path = new Array(pathDepth + 1).join('../'); | |
return path; | |
} | |
} | |
}; | |
module.exports = { | |
get: function(basePath, file_extension, options, callback){ | |
return callback(null, { "tag": generate_tag_helpers_with_basepath(basePath) }, {}, new Date()); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment