I'm disabling this feature because I don't know what it is:
app.set('view options', { layout: false });
But It sounds interesting so I would like to know why was this designed, so I would like to know what are the usage cases and why is this good :)
If you read the View Rendering section it tells you about layouts.
It's a way to apply generic HTML wrappers to all your pages.
For example Reference
!!! 5
html
head
title Blog
link(rel='stylesheet', href=base + '/style.css')
body
#container!= body
Is a layout for an example from the express folder. This will be applied to all pages and your actual view that your rendering will be rendered in != body
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With