markdown-folder-to-html
Version:
Convert a folder with files and markdown documents to an HTML site
13 lines (12 loc) • 334 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const contentS = "<!--CONTENT-->";
const navS = "<!--NAV-->";
function renderPage(template, navmenu, content) {
return template
.split(navS)
.join(navmenu)
.split(contentS)
.join(content);
}
exports.default = renderPage;