How to get access to request object from custom handlebars helper
问题 I'm using handlebars with node.js and express and I have a custom registered helper for temperature display that I'd like to have access to a query parameter from the page URL. The concept behind the helper is to handle Fahrenheit to Celsius conversion automatically based on whether ?tempFormat=F or tempFormat=C is in the URL or not. Here's the pseudo code for the custom helper I'd like to have: hbs.registerHelper("formatTemp", function(temp) { if (query parameter says to use Fahrenheit) {