Created
June 1, 2016 04:06
-
-
Save nateyolles/8b55b23d2245f7bd6079448b7f1e4d49 to your computer and use it in GitHub Desktop.
Custom Client Library Sightly templates in AEM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--/* | |
For the entire file, see: https://github.com/nateyolles/aem-clientlib-async/blob/master/clientlib-async/apps/clientlib-async/sightly/templates/clientlib.html | |
*/--> | |
<template data-sly-template.all="${@ categories='Client Library categories', | |
loading='Accepts async and defer', | |
onload='JavaScript to run for async and defer', | |
crossorigin='Accepts anonymous and use-credentials'}"> | |
<section data-sly-test="${request.getResourceResolver}" | |
data-sly-use.clientlib="${'/apps/clientlib-async/sightly/templates/graniteClientLib.html'}" | |
data-sly-call="${clientlib.include @ categories=categories, loading=loading, onload=onload, crossorigin=crossorigin}" | |
data-sly-unwrap> | |
</section> | |
</template> | |
<!--/* | |
For the entire file, see: https://github.com/nateyolles/aem-clientlib-async/blob/master/clientlib-async/apps/clientlib-async/sightly/templates/graniteClientlib.html | |
*/--> | |
<template data-sly-template.include="${@ categories='Client Library categories', | |
mode='optional: JS or CSS, case-insensitve', | |
loading='optional: JS async or defer', | |
onload='optional: JS to run for async and defer', | |
crossorigin='optional: accepts anonymous and use-credentials'}" | |
data-sly-use.clientlib="${'apps.clientlib_async.sightly.templates.ClientLibUseObject' @ categories=categories, mode=mode, loading=loading, onload=onload, crossorigin=crossorigin}"> | |
${clientlib.include @ context='unsafe'} | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment