Trouble with serving HTMl on localhost

Hi, so I'm building a framework for SSR and I'm struggling with the following:

When I clone my repo and run my example app with deno run --allow-net example.ts, and I open up any pages on localhost:8080/page{0-4}, I see a blank white screen. I have narrowed down the problem to lines 48-75 in the file linked below. Where am I going wrong? I tried a simple console.log from within the handler closure to no avail. What am I missing here? Link to the file:
https://github.com/angeldollface/mina/blob/main/src/server.ts
GitHub
A minimal web framework for building reactive, server-side-rendered web applications. :fairy_woman: (W.I.P.) - angeldollface/mina
mina/src/server.ts at main Β· angeldollface/mina
Was this page helpful?