I am using express and am using res.render like this:
res.render('myurl', {
data: {
account: escape(JSON.stringify(outcome.account)),
user: escape(JSON.stringify(outcome.user))
});
JADE file:
script.
-console.log('hi');
-console.log(data.user)
How do I access this data on a Jade file. I know I have to use some sort of data binding but am not sure what to do exactly? Could someone please help me out?
You just use data.account
and data.user
as the variable names in your template.