I am trying to pass a variable from node.js to my HTML file.
app.get(\'/main\', function(req, res) { var name = \'hello\'; res.render(__dirname + \"/view
If using Express it's not necessary to use a View Engine at all, use something like this:
{{ name }}
This works if you previously set your application to use HTML instead of any View Engine