To learn more about express:
http://amzn.to/1RHLjxw
This is a tutorial with ejs template. We can use conditionals in the templating engine. It's very similar to php, in addition you can hide your javascript. Server side in your view. But it's frowned upon because we as developer want all our script to be in pieces and not mangled. We want html, css, javascript all separate.
...
https://www.youtube.com/watch?v=xB2JXrJjdOg