Conditionals

Pug’s first-class conditional syntax allows for optional parenthesis, and you may now omit the leading - otherwise it’s identical, still just regular javascript:

Pug also provides a negated version unless (the following are therefore equivalent):

unless user.isAnonymous
  p You're logged in as #{user.name}
if !user.isAnonymous
  p You're logged in as #{user.name}