brillout / goldpage

Page Builder.
Creative Commons Zero v1.0 Universal
57 stars 3 forks source link

Support same named page config files, e.g. `pages/index.page.js` & `foo/index.page.js`. #3

Closed brillout closed 5 years ago

brillout commented 5 years ago

As pointed by @chriscalo in https://github.com/reframejs/goldpage/issues/2.

chriscalo commented 5 years ago

Copying what I said in #2 here to save some back-and-forth:

I like structuring files in web apps in a way that matches URL paths. However, goldpage yells at me when more than one page config file has the same name. Here's how I prefer to structure things, but this doesn't work with goldpage because there are two index.page.js files (even though they're in different folders):

/ => pages/index.page.js
/foo => pages/foo/index.page.js
brillout commented 5 years ago

Done & published as 0.5.2.

chriscalo commented 5 years ago

Seems to work great, thanks so much 🙏