Pug render variable to /profile

Advanced Node and Express - How to Put a Profile Together

I’m getting this error on test. Anyone else ever get this?
“You should correctly add a Pug render variable to /profile.”

@MJK This worked for me . Try it !!

  (req, res) => res.render(
    process.cwd() + '/views/pug/profile.pug',
    { username: req.user.username }
1 Like

YES!!! That did it. Thank so much.

1 Like

thanks it worked for me can you tell why this works