When I was writing this recipe I was never able to figure out conditionals in erubis because of the horrible examples and docs. :)