Closed co-sic closed 6 months ago
Totally. The single-level directory was always intended to be a temporary limitation.
+1 definitely want this, it is very useful if you are grouping code by features, i hope it support path pattern like ./features/**/*.tsx
features
├── products
│ └── emails
│ └── marketing.tsx
├── projects
│ └── emails
│ └── reminder.tsx
└── users
└── emails
└── forgot-password.tsx
good news: @ryanlanciaux has stepped up to work on this.
This is available in the latest @jsx-email/app-preview
version and can be seen on https://samples.jsx.email
Feature Use Case
I would like to group my email templates in different folder inside my root template folder but still be able to see them all in the preview tool. Currently you can only see the templates that are directly in the folder you specify and not in any subfolders.
Feature Proposal
This could maybe be an additional option you can pass to also include all the folders inside your rooth path in the preview and then display the same folder structure on the nav bar on the left side.