denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.17k stars 623 forks source link

Add documentation for colocation #2305

Closed adamzerner closed 4 months ago

adamzerner commented 7 months ago

The blog post for Fresh 1.4 discusses how you could use route group directories prefixed with an underscore to colocate files that are related to a given route:

When the name of a route group folder starts with an underscore, like (_components), Fresh will ignore that folder and it’s effectively treated as private. This means you can use these private route folders to store components related to a particular route.

However, this doesn't seem to be documented anywhere in the docs. It probably should be.