I am using Meteor, Handlebars, and Backbone to create a multipage application. I have a Router set up using backbone which sets a session variable, currentPage. How can I render a different template depending on the value of currentPage?
I was told that I could create a Template helper function that would do this, but I’m not sure how to approach this.
if currentPage is global and pages are stored as strings, then I would expect this to work: