//- some-page.pug
-
var isIndexPage = true;
var user = {
name: 'John Doe',
role: 'admin'
};
//- header.pug
header.header(class=isIndexPage ? 'index-page' : null)
if (user)
.user-name #{user.name}
else
.guest-area Hello, guest!
"NODE_ENV=production"