Expose js location hosted in AEM[6.3] clientlib as part of end user page : Bit urgent
Hi All,
We have a requirement wherein
1] A js file is placed in etc/clientlib folder of AEM.
2] Now, this js location is to be available on end user facing site[ or say on publish environment ] along with some user instructions text and styling with it. Basically if these are available on publish/live site , the user will be able to copy all these [location of js file say localhost:4503/etc/clientlibs/.../../sample.js , instructions text and styling ]hosted on AEM servers and use it on some other website/page.
3] Based on the environment like dev, qa.. it should pickup the domain [for which we already have backend code to read from the configuration] and link to the js file should be appropriately formed.
Any thoughts/pointers/reference code on this will be really helpful.