This commit is contained in:
freearhey 2019-11-02 13:26:21 +03:00
parent d1e525ac07
commit 7d2745fff7
103 changed files with 10755 additions and 10738 deletions

View file

@ -12,6 +12,12 @@ const markdownInclude = require('markdown-include')
let cache = {}
let helper = {}
helper.createDir = function(dir) {
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir)
}
}
helper.compileMarkdown = function(filepath) {
return markdownInclude.compileFiles(path.resolve(__dirname, filepath))
}