https://fresh.deno.dev/docs/getting-started/dynamic-routes
So the example above could be:
user/[username]/page/[pagename].ts
So the example above could be: