How to create a Handlebar helper function

Your question helped me too, thanks to @Johani! I’m going to look at refactoring some of my code as a result.