Expand my Community achievements bar.

Elevate your expertise and be recognized as a true influencer! Nominations for the exclusive Adobe Community Advisor program 2023 are now OPEN.

Printing Client Library using HtmlLibraryManager


Level 3

Hi ,

I am using HtmlLibraryManager to print my client libraries .

I am using the following code to print the client libraries in the page.

HtmlLibraryManager m = getService(slingRequest);

String st="clientlibrarycategory"

m.writeJsInclude(slingRequest, this.getJspContext().getOut(), st);

the above successfully prints the following :

   <script type="text/javascript" src="/etc/designs/clientlibrarycategory/clientlibs.min.js"></script>

But I didn't get why the dependencies, and embeds didn't get printed ? Doesn't it support ,please reply.



0 Replies



Please have a look at this reference implementation:- aem-clientlib-async/ClientLibUseObject.java at master · nateyolles/aem-clientlib-async · GitHub

Also, refere to this post