chore: disable delete confirmation in VS Code explorer
Disable the confirmation dialog when deleting files in the VS Code explorer to streamline the development workflow and reduce friction during file management operations.
This commit is contained in:
27
website/node_modules/express-ejs-layouts/example/index.js
generated
vendored
Normal file
27
website/node_modules/express-ejs-layouts/example/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
var path = require('path');
|
||||
var express = require('express');
|
||||
var expressLayouts = require('..');
|
||||
|
||||
var app = express();
|
||||
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
app.set('view engine', 'ejs');
|
||||
app.set('layout extractScripts', true)
|
||||
app.set('layout extractStyles', true)
|
||||
|
||||
app.use(expressLayouts);
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.locals = {
|
||||
title: 'Example',
|
||||
message: 'This is a message'
|
||||
};
|
||||
res.render('view', {
|
||||
// additional locals, a custom layout, or other options can be defined here
|
||||
});
|
||||
});
|
||||
|
||||
var port = 3000;
|
||||
app.listen(port, function() {
|
||||
console.log('Listening on http://localhost:%s/', port);
|
||||
});
|
||||
Reference in New Issue
Block a user