As exchanged once with Felix Meschberger, the idea is to implement a custom resource provider, with ability to merge multiple resources based on your search paths.
For instance, if your search paths are
Hitting /merge/my/resource/is/here will check
There are some options like:
- add/override property
- delete a property of the resource under /libs
- reorder nodes if available
I intend to submit this patch as soon as possible.
Code is currently located at https://github.com/gknob/sling-resourcemerger