Console log show me the active user, but I cannot use it in view, I am using plain html.
app.post('/', function (req, res) {
var user = { user : req.body.username };
res.render('doctor_hagfish/pets', { locals:{
user:user
}});
console.log(user)
});
I don't know what i am doing wrong, suggestions? Until now i tried these syntaxes in view #{user} {{user}}
Aucun commentaire:
Enregistrer un commentaire