...
Put the same reference resolver configuration in the component template definition?
Cons:
- This might still have name conflicts, but they would be scoped much smaller - just to referenced items.
/components/tourCarousel.yaml
...
GraphQL was designed to handle this kind of querying/referencing.
What if you could provide an optional GraphQL fragment next to the template definition file. If it was present, then the component would only output this content.
/components/tourCarousel.graphql
...
As an optional JSON fragment?
Very similar to graphql fragment above.
If developer supplies a JSON file - it overrides the default response. Maybe use JS templatingactual javascript??
/components/tourCarousel.json (JUST A SKETCH!)
...