This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag 
org.apache.sling.scripting.sightly.testing-content-1.0.0
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-testing-content.git

commit 4822be2bdb74f5ef19dc82d0fea9b2a37ff6c008
Author: Radu Cotescu <[email protected]>
AuthorDate: Thu Mar 12 14:04:21 2015 +0000

    SLING-4489 - Sightly: Hyphenated identifiers cause a compilation exception 
in Sightly generated Java classes
    
    * added hyphen checks and parsing exception throwing
    * added integration tests
    
    (applied patch sent by Vlad Băilescu; closes #68)
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/sightly/testing-content@1666197
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../resources/SLING-INF/apps/sightly/scripts/template/bad-id.html     | 1 +
 .../resources/SLING-INF/apps/sightly/scripts/template/template.html   | 2 ++
 src/main/resources/SLING-INF/sightly.json                             | 4 ++++
 3 files changed, 7 insertions(+)

diff --git 
a/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html 
b/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html
new file mode 100644
index 0000000..2d55e29
--- /dev/null
+++ b/src/main/resources/SLING-INF/apps/sightly/scripts/template/bad-id.html
@@ -0,0 +1 @@
+<template data-sly-template.bad-template-id=" @ ">should produce parsing 
exception</template>
diff --git 
a/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html 
b/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html
new file mode 100644
index 0000000..ca215d5
--- /dev/null
+++ b/src/main/resources/SLING-INF/apps/sightly/scripts/template/template.html
@@ -0,0 +1,2 @@
+<template data-sly-template.templ=" @ ">SUCCESS</template>
+<div id="template" data-sly-call="${templ}"></div>
\ No newline at end of file
diff --git a/src/main/resources/SLING-INF/sightly.json 
b/src/main/resources/SLING-INF/sightly.json
index b9f57d2..29f9f86 100644
--- a/src/main/resources/SLING-INF/sightly.json
+++ b/src/main/resources/SLING-INF/sightly.json
@@ -12,5 +12,9 @@
     "includedresource": {
         "jcr:primaryType": "nt:unstructured",
         "sling:resourceType": "/apps/sightly/scripts/includedresource"
+    },
+    "template": {
+      "jcr:primaryType": "nt:unstructured",
+      "sling:resourceType": "/apps/sightly/scripts/template"
     }
 }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to