kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
640 stars 22 forks source link

a problem of convention in nested route #87

Open lambdaxyzt opened 7 months ago

lambdaxyzt commented 7 months ago

hi tnx for greate package , assume we have :

app/routes
├── servers+
│   ├── $serverName.jsx         
│   ├── index.jsx

should not $serverName.jsx have layout of server+/index.jsx file ? because if I want to I should do this :

app/routes
├── servers.jsx
├── servers+
│   ├── $serverName.jsx         
│   ├── index.jsx
kiliman commented 7 months ago

If you're using hybrid routes, the layout route is _layout.tsx

servers+/_layout.tsx => servers.tsx