You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by gi...@apache.org on 2022/08/18 13:07:40 UTC

[sling-site] branch asf-site updated: Automatic website deployment from https://ci-builds.apache.org/job/Sling/job/modules/job/sling-site/job/master/528/

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

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new dca2ef8ea Automatic website deployment from https://ci-builds.apache.org/job/Sling/job/modules/job/sling-site/job/master/528/
dca2ef8ea is described below

commit dca2ef8ea85925a3992807ff0dd0518b0edf4f95
Author: jenkins <bu...@apache.org>
AuthorDate: Thu Aug 18 13:07:36 2022 +0000

    Automatic website deployment from https://ci-builds.apache.org/job/Sling/job/modules/job/sling-site/job/master/528/
---
 documentation/bundles/scripting/scripting-htl.html | 6 +++---
 sitemap.xml                                        | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/documentation/bundles/scripting/scripting-htl.html b/documentation/bundles/scripting/scripting-htl.html
index d60916ecd..8049f04d4 100644
--- a/documentation/bundles/scripting/scripting-htl.html
+++ b/documentation/bundles/scripting/scripting-htl.html
@@ -300,7 +300,7 @@ use(['dep1.js', 'dep2.js'], function (Dep1, Dep2) {
     &lt;/html&gt;
 </code></pre>
 <p>The advantage of loading a bean using just the simple class name (e.g. <code>data-sly-use.page=&quot;PageBean&quot;</code>) is that an inheriting component can overlay the <code>PageBean.java</code> file and provide a different logic. In this case the package name of the <code>PageBean</code> class will automatically be derived from the calling script's parent path (e.g. <code>apps.my_project.components.page</code>) - the bean doesn't even have to specify it. However, keep in mind tha [...]
-<h4><a href="#passing-parameters" id="passing-parameters">Passing parameters</a></h4>
+<h4><a href="#passing-parameters-to-java-use-objects" id="passing-parameters-to-java-use-objects">Passing parameters to Java Use-objects</a></h4>
 <p>Passed parameters will be made available to the Use object as request attributes and, if the object implements the <a href="https://github.com/apache/sling-org-apache-sling-scripting-sightly-compiler-java/blob/master/src/main/java/org/apache/sling/scripting/sightly/pojo/Use.java"><code>org.apache.sling.scripting.sightly.pojo.Use</code></a> interface, through the <code>javax.script.Bindings</code> passed to the <code>init</code> method. Assuming the following markup:</p>
 <pre><code>    &lt;div data-sly-use.useObject=&quot;${'org.example.use.MyUseObject' @ colour='red', year=2016}&quot;&gt;
         ${useObject.shine}
@@ -414,7 +414,7 @@ sightly         // the namespace object under which the asynchronous Resource-AP
 use             // the use function
 </code></pre>
 <p>With the exception of the <code>console</code> and <code>use</code> objects, all the other global objects implemented by the JavaScript Use Provider are present in order to support the asynchronous Resource-API implemented by <code>org.apache.sling.scripting.sightly.js.provider</code>. However, this was deprecated starting with version 1.0.8 - see <a href="https://issues.apache.org/jira/browse/SLING-4964">SLING-4964</a>.</p>
-<h4><a href="#passing-parameters" id="passing-parameters">Passing parameters</a></h4>
+<h4><a href="#passing-parameters-to-javascript-use-objects" id="passing-parameters-to-javascript-use-objects">#### Passing parameters to JavaScript Use-objects</a></h4>
 <p>Passed parameters will be made available to the Use object as properties of <code>this</code>. Assuming the following markup:</p>
 <pre><code>    &lt;div data-sly-use.logic=&quot;${'logic.js' @ colour='red', year=2017}&quot;&gt;
         My colour is ${logic.colour ? logic.colour : 'not important'} and I'm from ${logic.year}
@@ -600,7 +600,7 @@ use             // the use function
                             content/documentation/bundles/scripting/scripting-htl.md
                         </a>
                     </div>                    <div class="revisionInfo">
-                        Last modified by <span class="author">Radu Cotescu</span> on <span class="comment">2022-08-17</span>
+                        Last modified by <span class="author">Radu Cotescu</span> on <span class="comment">2022-08-18</span>
                     </div><p>
                         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project
     logo are trademarks of The Apache Software Foundation. All other marks mentioned 
diff --git a/sitemap.xml b/sitemap.xml
index 47923f319..d7ed9e5d0 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
     <url>
-        <loc>https://sling.apache.org/documentation/bundles/scripting/scripting-htl.html</loc><lastmod>2022-08-17</lastmod>
+        <loc>https://sling.apache.org/documentation/bundles/scripting/scripting-htl.html</loc><lastmod>2022-08-18</lastmod>
     </url><url>
         <loc>https://sling.apache.org/releases.html</loc><lastmod>2022-08-15</lastmod>
     </url><url>