I am trying to pass variables from page.js to page.jade but for some reason this is not working.
here's my code:
page.js
res.render('page', {param1: 'xxx', param2: 'yyy'} );
page.jade
#{param1}
br
#{param2}
br
I am trying to pass variables from page.js to page.jade but for some reason this is not working.
here's my code:
page.js
res.render('page', {param1: 'xxx', param2: 'yyy'} );
page.jade
#{param1}
br
#{param2}
br
You might be rendering them as tags instead. View your source html post render.
Try using !{param} instead of #{param}.