Author: buildbot Date: Mon Sep 4 19:34:24 2017 New Revision: 1017697 Log: Staging update by buildbot for sling
Modified: websites/staging/sling/trunk/content/ (props changed) websites/staging/sling/trunk/content/documentation/bundles/sling-pipes.html Propchange: websites/staging/sling/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Mon Sep 4 19:34:24 2017 @@ -1 +1 @@ -1807287 +1807292 Modified: websites/staging/sling/trunk/content/documentation/bundles/sling-pipes.html ============================================================================== --- websites/staging/sling/trunk/content/documentation/bundles/sling-pipes.html (original) +++ websites/staging/sling/trunk/content/documentation/bundles/sling-pipes.html Mon Sep 4 19:34:24 2017 @@ -310,10 +310,19 @@ from the input path, output the found au <li><code>conf</code> node tree that will be tested against the current input of the pipe, each <code>/conf/sub@prop=value</code> will triggers a test on <code>./sub@prop</code> property of the current input, testing if its value matches <code>value</code> regex. If the special <code>slingPipesFilter_noChildren=${true}</code> property is there with the value instantiated as a true boolean, then filter will pass if corresponding node has no children.</li> -<li><code>slingPipesFilter_not='true'</code> inverts the expected result of the filter</li> +<li><code>slingPipesFilter_test='${...}'</code> evaluates the property value, and filters out the stream if the expression is not a boolean or false</li> +<li> +<p><code>slingPipesFilter_not='true'</code> inverts the expected result of the filter</p> +<p>echo('/content/foo').grep('foo','bar','slingPipesFilter_not',true).run()</p> +</li> </ul> -<p><code>echo('/content/foo').grep('foo','bar','slingPipesFilter_not',true).run()</code> will either return <code>/content/foo</code> either nothing depending on it +<p>will either return <code>/content/foo</code> either nothing depending on it not containing <code>@foo=bar</code></p> +<div class="codehilite"><pre>echo('content/foo').name('FOO').grep('slingPipesFilter_test','<span class="cp">${</span><span class="n">FOO</span><span class="o">.</span><span class="n">foo</span> <span class="o">==</span> <span class="s">"bar"</span><span class="cp">}</span>' +</pre></div> + + +<p>is an equivalent</p> <h3 id="containers">containers<a class="headerlink" href="#containers" title="Permanent link">¶</a></h3> <h5 id="container-pipe">Container Pipe<a class="headerlink" href="#container-pipe" title="Permanent link">¶</a></h5> <p>assemble a sequence of pipes</p> @@ -435,7 +444,7 @@ it does </p> <li>jackrabbit api (2.7.5+) (used in AuthorizablePipe)</li> </ul> <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;"> - Rev. 1806970 by npeltier on Fri, 1 Sep 2017 14:59:54 +0000 + Rev. 1807292 by npeltier on Mon, 4 Sep 2017 19:34:02 +0000 </div> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project