Just had a funny on my new project where if I turn the layout off like this for a particular route (some javascript 1):
app.set( 'view options', { layout: false } );then the layout was being turned off everywhere on my production box (though fine locally, and on my staging box, which is another identical ec2 instance). Changing to this format:
res.render( 'myview.ejs', { layout: true } );fixes it... but why??? And why on one box and not its twin?
⬅️ Functions :: So you cold call me, and then you ask me to confirm my address and postcode before you will tell me why you are calling? ➡️
Paulʼs weblog - I live near Folkestone, Kent. Wed + dad to 2, I'm a full-stack web engineer, + I do js / node, some ruby, other languages etc. My hobbies are pubbing, running, restaurants, home automation 🤖 and other diy jiggery-pokery, history, tree stuff, TV, squirrels, pirates, lego, + time travel.