This commit is contained in:
freearhey committed 2019-11-02 13:26:21 +03:00
1 parent 31cd192a65
commit 4eeaab774a
103 files changed
+10755 -10738

No files matched your search

+6
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))
}