sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r986072 - in /websites/staging/sling/trunk/content: ./ documentation/bundles/scripting/scripting-sightly.html
Date Tue, 19 Apr 2016 09:55:15 GMT
Author: buildbot
Date: Tue Apr 19 09:55:15 2016
New Revision: 986072

Log:
Staging update by buildbot for sling

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

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 19 09:55:15 2016
@@ -1 +1 @@
-1739883
+1739885

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
Tue Apr 19 09:55:15 2016
@@ -411,8 +411,8 @@ Assuming the following content structure
 <p>Similar to the Java Use Provider, loading the script using a relative path allows
inheriting components to overlay just the Use script, without having to also overlay the calling
Sightly script.</p>
 <h4 id="passing-parameters_2">Passing parameters<a class="headerlink" href="#passing-parameters_2"
title="Permanent link">&para;</a></h4>
 <p>Passed parameters will be made available to the Use object as properties of <code>this</code>.
Assuming the following markup:</p>
-<div class="codehilite"><pre>    <span class="nt">&lt;div</span>
<span class="err">data-sly-use.</span><span class="na">useObject=</span><span
class="s">&quot;</span><span class="cp">${</span><span class="s">&#39;useObject.js&#39;</span>
<span class="err">@</span> <span class="n">colour</span><span class="o">=</span><span
class="s">&#39;red&#39;</span><span class="p">,</span> <span
class="n">year</span><span class="o">=</span><span class="mi">2016</span><span
class="cp">}</span><span class="s">&quot;</span><span class="nt">&gt;</span>
-        <span class="cp">${</span><span class="n">useObject</span><span
class="o">.</span><span class="n">shine</span><span class="cp">}</span>
+<div class="codehilite"><pre>    <span class="nt">&lt;div</span>
<span class="err">data-sly-use.</span><span class="na">logic=</span><span
class="s">&quot;</span><span class="cp">${</span><span class="s">&#39;logic.js&#39;</span>
<span class="err">@</span> <span class="n">colour</span><span class="o">=</span><span
class="s">&#39;red&#39;</span><span class="p">,</span> <span
class="n">year</span><span class="o">=</span><span class="mi">2017</span><span
class="cp">}</span><span class="s">&quot;</span><span class="nt">&gt;</span>
+        My colour is <span class="cp">${</span><span class="n">logic</span><span
class="o">.</span><span class="n">colour</span> <span class="err">?</span>
<span class="n">logic</span><span class="o">.</span><span class="n">colour</span>
<span class="p">:</span> <span class="s">&#39;not important&#39;</span><span
class="cp">}</span> and I&#39;m from <span class="cp">${</span><span
class="n">logic</span><span class="o">.</span><span class="n">year</span><span
class="cp">}</span>
     <span class="nt">&lt;/div&gt;</span>
 </pre></div>
 
@@ -606,7 +606,7 @@ Assuming the following content structure
     </tr>
 </table>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1739883 by radu on Tue, 19 Apr 2016 09:50:25 +0000
+        Rev. 1739885 by radu on Tue, 19 Apr 2016 09:55:07 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project



Mime
View raw message