Just had a funny on my new project where if I turn the layout off like this for a particular route (some javascript):
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?
js: Programming language of the internets, mostly how I make my living.
⬅️ 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 Clarkeʼs weblog - I live in Hythe, Kent. Married to Clare + dad to 2, I'm a full-stack web developr, + I do js / Node, some ruby, python, php etc. I like pubbing, parkrun, restaurants, home-automation + other diy jiggery-pokery, history, genealogy, TV, squirrels, pirates, lego, and TIME TRAVEL.