Hello,

Just to update this issue. We solved the problem with a custom
resourceprovider. We are now able to merge static resources in the same way
it's currently possible for sling components. Giving a proper example:

If we have this in libs

/libs/acme/index.html
/libs/acme/images/logo.png
/libs/acme/styles/theme.css

and this in apps

/apps/myacme/index.html
/apps/myacme/images/logo.png
/apps/myacme/campaigns/campaign1.html
/apps/myacme/campaigns/campaign2.html

we are now able to mount a resource provider in /content/superacme which
overlays by order /apps/myacme and then /libs/acme

I've changed the names of all the roots on purpose to better explain the
capabilities.

For this example requesting the static data from /content/superacme we end
up with:

/content/superacme/index.html <- From apps
/content/superacme/images/logo.png <- From apps
/content/superacme/campaigns/campaign1.html <- From apps
/content/superacme/campaigns/campaign2.html <- From apps
/content/superacme/styles/theme.css <-- From libs

We are using this to provide to our developers a way of overriding the base
frontend app that we are developing, thus providing a way to customize
almost everything from the base definition.

We are planing to introduce a merging concept also for json resources.

As soon as we finish our delivery we can contribute this resource provider
if someone finds this interesting.

Regards,
Tnks for the help and the comments



--
Sent from: http://apache-sling.73963.n3.nabble.com/Sling-Users-f73968.html

Reply via email to