Node JS Pass Variables To Pug Template's JavaScript And Html Sections
I have the following route and it passes a serires of variables to the pug template. items.js route router.get('/edit/:itemObjectId', async function(req, res, next) { var itemO
Solution 1:
To pass the value of item.item_name
into the input element just leave out the quotes and this will render on the server:
input#validationItemName.form-control(value= item.item_name name='itemName'...
Post a Comment for "Node JS Pass Variables To Pug Template's JavaScript And Html Sections"