You can do that by extending Express: Extending express (NodeJS)
Not sure how you will pass the HTML though.