I’m building a theme components which would ideally let the users customize partials depending on the content type.
I need to check for the presence of the type partial in their layout hierarchy before using it of course and potentially fallback on the default.
This used to be simple when only the project’s could overwrite partials, but now that any other theme component can, using
fileExists on on the project’s
layouts/partials/ dir is not enough.
Any one stumbled on this issue since the implementations of theme-components? Is there a safe and not too overkilling way to do this?