/
graniteClientLib.html
33 lines (33 loc) · 1.49 KB
/
graniteClientLib.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!--/*
**
* This Sightly component overlays the default AEM 6 component located at
* /libs/granite/sightly/templates/graniteClientLib.html and contains four
* updates.
*
* See: https://github.com/nateyolles/aem-clientlib-async
*
* 1) The addition of the "loading" expression option. This option accepts
* "async" and "defer" and only affects JavaScript output.
*
* 2) The addition of the "onload" expression option. This option only affects
* JavaScript output.
*
* 3) The addition of the "crossorigin" expression option. This option affects
* both stylesheet and JavaScript output.
*
* 4) Changing the data-sly-use value to use the overlayed Java class. If you
* want to add the Java class to your custom package, you only need to update
* this value.
*
* @author Nate Yolles <yolles@adobe.com>
* @version 2.0.0
* @since 2015-03-19
*/-->
<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>