Passing data to view in node + express Passing data to view in node + express express express

Passing data to view in node + express


Jonathan Ong's comment actually brought me onto the right track. Since I was using a customer handler for html, it wouldn't interpret any variables.

I switched to using ejs:

     // view engine ejs     app.set('view engine', 'ejs');     app.register('.html', require('ejs'));

and used the following placeholder:

    <%= eventData.Subject %>

This actually made my data show up. Thanks for all the comments and answers!Michael