How to access the into PUG passed object inside of an inline script without converting

Is it possible to access the whole object, which is passed into PUG, inside of an inline script without converting it with !{JSON.stringify(object)}; // renderController.js res.render(‘../events’, { …

How to write multi-line scripts in Pug and Facebook JS SDK

I’m trying to include a multi-line JavaScript function inside the script tag within my layout pug template. It needs to run in the script tag, i.e. it has to be done this way and cannot be passed into …

Button inside jade table cell

I want to add a button to shown in each row of the table, But the button does not appear cant figure out why. I’m new to jade and node js Jade file Answer you are not indenting your th’s correctly (they need to be indented relative to the tr that they are in) and you need to include an empty one (or set a colspan = 2″on the last th) to accommodate the td that the edit button requires)