I\'m sending a date to a .jade file from my .js file using Node.js. When the #{date} field is false, it executes the else and print
Node.js
#{date}
false
If date is false, do you want to output the string 'man'? If yes, your if and else statements are the wrong way around...
How about:
if date = date else | man
or even:
| #{date ? date : 'man'}
or simply:
| #{date || 'man'}