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

radu pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-compiler.git


The following commit(s) were added to refs/heads/master by this push:
     new caa44ae  SLING-6779 - The HTL compiler and Maven Plugin should warn 
when using potentially invalid options
caa44ae is described below

commit caa44ae1e1181910758509fced1231936e3ad7f9
Author: Radu Cotescu <[email protected]>
AuthorDate: Wed Jun 5 17:05:15 2019 +0200

    SLING-6779 - The HTL compiler and Maven Plugin should warn when using 
potentially invalid options
    
    * added requestAttributes option to the data-sly-resource and 
data-sly-include known options
---
 .../apache/sling/scripting/sightly/impl/filter/ExpressionContext.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/scripting/sightly/impl/filter/ExpressionContext.java
 
b/src/main/java/org/apache/sling/scripting/sightly/impl/filter/ExpressionContext.java
index 2c3e5fa..8ee720e 100644
--- 
a/src/main/java/org/apache/sling/scripting/sightly/impl/filter/ExpressionContext.java
+++ 
b/src/main/java/org/apache/sling/scripting/sightly/impl/filter/ExpressionContext.java
@@ -40,9 +40,9 @@ public enum ExpressionContext {
     PLUGIN_DATA_SLY_SET(Collections.emptySet()),
     PLUGIN_DATA_SLY_LIST(new HashSet<>(Arrays.asList("begin", "step", "end"))),
     PLUGIN_DATA_SLY_REPEAT(new HashSet<>(Arrays.asList("begin", "step", 
"end"))),
-    PLUGIN_DATA_SLY_INCLUDE(new HashSet<>(Arrays.asList("appendPath", 
"prependPath", "file"))),
+    PLUGIN_DATA_SLY_INCLUDE(new HashSet<>(Arrays.asList("appendPath", 
"prependPath", "file", "requestAttributes"))),
     PLUGIN_DATA_SLY_RESOURCE(new HashSet<>(Arrays.asList("appendPath", 
"prependPath", "file", "selectors", "addSelectors",
-            "removeSelectors", "resourceType"))),
+            "removeSelectors", "resourceType", "requestAttributes"))),
     PLUGIN_DATA_SLY_TEMPLATE(Collections.emptySet()),
     PLUGIN_DATA_SLY_CALL(Collections.emptySet()),
     PLUGIN_DATA_SLY_UNWRAP(Collections.emptySet()),

Reply via email to