This file contains 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
<widgetParam | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/textfield" | |
fieldLabel="This only shows with querystring param "biz=baz"" | |
name="./widgetParam"> | |
<granite:rendercondition | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/simple" | |
expression="${param.biz == 'baz'}"/> | |
</widgetParam> |
This file contains 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
package apps.clientlib_async.sightly.templates; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.ArrayList; | |
import javax.script.Bindings; |
This file contains 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}" |
This file contains 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
<head data-sly-use.clientLib="${'/apps/clientlib-async/sightly/templates/clientlib.html'}"> | |
<!--/* for css+js */--> | |
<meta data-sly-call="${clientLib.all @ categories='your.clientlib'}" data-sly-unwrap></meta> | |
</head> |
This file contains 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
<head data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}"> | |
<!--/* for css+js */--> | |
<meta data-sly-call="${clientLib.all @ categories='your.clientlib'}" data-sly-unwrap></meta> | |
<!--/* only js */--> | |
<meta data-sly-call="${clientLib.js @ categories='your.clientlib'}" data-sly-unwrap></meta> | |
<!--/* only css */--> | |
<meta data-sly-call="${clientLib.css @ categories='your.clientlib'}" data-sly-unwrap></meta> |
This file contains 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
{ | |
"jcr:primaryType": "sling:Folder", | |
"jcr:mixinTypes": ["rep:AccessControllable"], | |
"global": { | |
"jcr:primaryType": "sling:Folder", | |
"settings": { | |
"jcr:primaryType": "sling:Folder", | |
"socialmedia": { | |
"jcr:primaryType": "cq:Page", | |
"facebook": { |
This file contains 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
package com.nateyolles.aem.slashconf.core.models; | |
import java.util.List; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.resource.ResourceResolver; | |
import org.apache.sling.api.resource.ValueMap; |
This file contains 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
package com.nateyolles.aem.slashconf.core.models; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.resource.LoginException; |
This file contains 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
package com.nateyolles.aem.slashconf.core.models; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.resource.Resource; | |
import org.apache.sling.api.resource.ValueMap; | |
import org.apache.sling.models.annotations.Model; |
This file contains 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
package com.nateyolles.aem.slashconf.core.models; | |
import javax.annotation.PostConstruct; | |
import javax.inject.Inject; | |
import org.apache.sling.api.SlingHttpServletRequest; | |
import org.apache.sling.api.resource.ValueMap; | |
import org.apache.sling.models.annotations.Model; | |
import com.adobe.granite.confmgr.Conf; |