Cześć. Mam taki kod, który pobiera obrazek z bazy danych
Application.read({
'name': req.params.username
}).then(function(results) {
if(results == null)
{
res.redirect('/');
}
else
{
res.render('user',
{
username: req.params.username,
id: results.get('id'),
profileImage: results.get('profileimage')
});
}
})
Ale nie wiem co zrobić by Pug wyświetlił obrazek, który znajduje się w zmiennej "profileImage"