📜  设置基本目录 inpug - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:00.610000             🧑  作者: Mango

代码示例1
app.set('views', path.join(__dirname, 'views'));
app.locals.basedir = app.get('views');

// now you can enter the path after views directory directly