What are the js and css include concepts in CQ5 using clientLibrary[cq:includeClientLib]? It would be great to have an example with screen shot.
create a clientlibs folder within the component folder and add the js, css required for that component. and then include this clientlib in your component. You add CSS files and JQuery framework files to a cq:ClientLibraryFolder node to define the style of the client JSP.
Select the client library folder and click Create > Create file. In the file name box, type one of the following file names and click OK: js. txt : Use this file name to generate a JavaScript file.
With reference to your question, please find the below link: http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2012/12/clientlibs-explained-by-example.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With