You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description @juanpprieto proposed an idea to support a similar structure to OS2.0 in Hydrogen, with layouts, templates, and sections.
Without breaking API compatibility of Remix, it may be worth considering if this is intuitive and helpful for developers — especially as we evaluate whether or not there's a future that may support a 1P content play with OSE.
.hydrogen/entry-x — hidden away, but still accessible to the user. We could scaffold on each build (users wouldn't be able to modify) or we could scaffold once and allow overwrites inline.
.hydrogen/routes — All magic routes and full-stack components would be scaffolded/copied on each build/dev from our npm package. User can disable certain features. User can copy paste them into src/template if they want to overwrite them. Any of these routes are merged with what's on the same path in /templates (/templates/x beats /.hydrogen/routes/x )
/templates/* behaves exactly like /routes/* can add remove change. it essentially extends /routes — e.g /.hydrogen/cart/x and /src/templates/cart/y both work.
/layouts/password — auto wraps /template/password (just added this to test parity with Dawn)
/layouts/storefront — auto wraps all other templates
/src/root is exposed (basically provides the exports to /.hydrogen/root. we could keep it hidden inside /.hydrogen/root by default and just show how it can be overwritten.
Requirements
100% compatibility with Remix APIs
Support for the "Theme template" dropdown in the admin
Description
@juanpprieto proposed an idea to support a similar structure to OS2.0 in Hydrogen, with layouts, templates, and sections.
Without breaking API compatibility of Remix, it may be worth considering if this is intuitive and helpful for developers — especially as we evaluate whether or not there's a future that may support a 1P content play with OSE.
.hydrogen/entry-x
— hidden away, but still accessible to the user. We could scaffold on each build (users wouldn't be able to modify) or we could scaffold once and allow overwrites inline..hydrogen/routes
— All magic routes and full-stack components would be scaffolded/copied on each build/dev from our npm package. User can disable certain features. User can copy paste them into src/template if they want to overwrite them. Any of these routes are merged with what's on the same path in /templates (/templates/x beats /.hydrogen/routes/x )/templates/*
behaves exactly like /routes/* can add remove change. it essentially extends /routes — e.g /.hydrogen/cart/x and /src/templates/cart/y both work./layouts/password
— auto wraps /template/password (just added this to test parity with Dawn)/layouts/storefront
— auto wraps all other templates/src/root
is exposed (basically provides the exports to/.hydrogen/root
. we could keep it hidden inside/.hydrogen/root
by default and just show how it can be overwritten.Requirements
#216 (comment)
The text was updated successfully, but these errors were encountered: