Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express ejs layout use different layout

app.get('/a', function(req, res) {
res.render('view', { layout: 'LayoutA' });
});
app.get('/b', function(req, res) {
  res.render('view', { layout: 'LayoutB' });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #ejs #layout #layout
ADD COMMENT
Topic
Name
2+5 =