You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2016/04/20 11:17:34 UTC

svn commit: r986156 - in /websites/staging/sling/trunk/content: ./ documentation/bundles.html documentation/bundles/scripting/scripting-sightly.html

Author: buildbot
Date: Wed Apr 20 09:17:33 2016
New Revision: 986156

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/bundles.html
    websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-sightly.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Apr 20 09:17:33 2016
@@ -1 +1 @@
-1740066
+1740073

Modified: websites/staging/sling/trunk/content/documentation/bundles.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles.html Wed Apr 20 09:17:33 2016
@@ -149,7 +149,7 @@ h2:hover > .headerlink, h3:hover > .head
 <li><a href="/documentation/bundles/apache-sling-commons-thread-pool.html">Commons Thread Pools</a></li>
 <li><a href="/documentation/bundles/commons-html-utilities.html">Commons HTML Utilities</a></li>
 <li><a href="/documentation/bundles/mime-type-support-commons-mime.html">MIME Type Support (commons.mime and commons.contentdetection)</a></li>
-<li><a href="">Scripting JSP Taglib</a></li>
+<li><a href="/documentation/bundles/scripting.html">Scripting</a></li>
 <li><a href="/documentation/bundles/sling-settings-org-apache-sling-settings.html">Sling Settings (org.apache.sling.settings)</a></li>
 <li><a href="/documentation/bundles/caching-services.html">Caching Services</a></li>
 <li><a href="/documentation/bundles/models.html">Model Objects</a></li>
@@ -182,7 +182,7 @@ h2:hover > .headerlink, h3:hover > .head
 <li><a href="/documentation/bundles/log-tracers.html">Log Tracer</a></li>
 </ul>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1728165 by kwin on Tue, 2 Feb 2016 18:02:28 +0000
+        Rev. 1740071 by radu on Wed, 20 Apr 2016 09:08:34 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project

Modified: websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-sightly.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-sightly.html (original)
+++ websites/staging/sling/trunk/content/documentation/bundles/scripting/scripting-sightly.html Wed Apr 20 09:17:33 2016
@@ -398,7 +398,7 @@ Assuming the following content structure
 
 
 <h3 id="javascript-use-provider">JavaScript Use Provider<a class="headerlink" href="#javascript-use-provider" title="Permanent link">&para;</a></h3>
-<p>The JavaScript Use Provider allows loading objects created through the <code>use</code> function, by evaluating scripts passed to <code>data-sly-use</code>.</p>
+<p>The JavaScript Use Provider allows loading objects created through the <code>use</code> function, by evaluating scripts passed to <code>data-sly-use</code>. The JavaScript files are evaluated server-side by the <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino">Rhino</a> scripting engine, through the <code>org.apache.sling.scripting.javascript</code> implementation bundle. This allows you to mix JavaScript API with the Java API exported by the platform. For more details about how you can access Java APIs from within JavaScript please check the <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/Scripting_Java#Accessing_Java_Packages_and_Classes">Rhino Java Scripting guide</a>.</p>
 <p><strong>Example:</strong>
 Assuming the following content structure:</p>
 <div class="codehilite"><pre>    └── <span class="n">apps</span>
@@ -465,7 +465,6 @@ Assuming the following content structure
 
 
 <h4 id="caveats">Caveats<a class="headerlink" href="#caveats" title="Permanent link">&para;</a></h4>
-<p>The JavaScript files are evaluated by the <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino">Rhino</a> scripting engine, through the <code>org.apache.sling.scripting.javascript</code> implementation bundle.</p>
 <p>Since these scripts are evaluated server-side, by compiling JavaScript to Java, you need to pay attention when comparing primitive objects using the strict equal operator (<code>===</code>) since comparisons between JavaScript and Java objects with the same apparent value will return <code>false</code> (this also applies to the strict not-equal operator - <code>!==</code>).</p>
 <p>Assuming the following Sightly script:</p>
 <div class="codehilite"><pre>    <span class="nt">&lt;ol</span> <span class="err">data-sly-use.</span><span class="na">obj=</span><span class="s">&quot;logic.js&quot;</span> <span class="na">data-sly-list=</span><span class="s">&quot;</span><span class="cp">${</span><span class="n">obj</span><span class="cp">}</span><span class="s">&quot;</span><span class="nt">&gt;</span>
@@ -638,7 +637,7 @@ Assuming the following content structure
     </tr>
 </table>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1740066 by radu on Wed, 20 Apr 2016 08:49:50 +0000
+        Rev. 1740073 by radu on Wed, 20 Apr 2016 09:17:24 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project