Client libraries for Static Template
Hello all,
Is it possible to include client libraries for Static template ?? And can we only give Page(core component) as a resource type for static template ?
Hello all,
Is it possible to include client libraries for Static template ?? And can we only give Page(core component) as a resource type for static template ?
If you want, you can create more js and css folder(client library) but make sure the category would be same as you used inside headlibs or footlibs , otherwise you need to add one more line in your libs file.
Example
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ categories='mysite.core.cat1'}" />
<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ categories='mysite.core.cat2'}" />
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.