mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
10 lines
266 B
JavaScript
10 lines
266 B
JavaScript
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
const dirname = path.dirname(import.meta.url.replace('file://', ''));
|
|
const tmplPath = path.resolve(dirname, 'template.html');
|
|
|
|
export function getServerHTMLTemplate() {
|
|
return fs.readFileSync(tmplPath).toString();
|
|
}
|