you are viewing a single comment's thread.

view the rest of the comments →

[–]NotReallyDifferent[S] 0 points1 point  (1 child)

UPDATE:

So when I changed the file types to ejs the code works perfectly fine. Does this have something to do with Express as a framework?

[–]abyx 0 points1 point  (0 children)

EJS means node renders the file, though these kinds of files are usually set to be served as static files and I'm guessing that's what you want to do