UNPKG

md-toy-blog

Version:

Very simple Markdown blog: serves your md as html without fancy databases. You will only spend time writing the actual data.

15 lines (14 loc) 457 B
import 'dotenv/config'; import { LoadDictElement } from 'di-why/build/src/DiContainer'; type FactoryProps = { userOrDefaultDir: UserOrDefaultDirFunction; }; const loadDictElement: LoadDictElement<Promise<string>> = { factory: async function ({ userOrDefaultDir }: FactoryProps) { return await userOrDefaultDir('MTB_HTML_PAGES_DIRNAME', 'pages'); }, locateDeps: { userOrDefaultDir: 'userOrDefaultDir', }, }; export default loadDictElement;