You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2016/04/19 11:55:07 UTC
svn commit: r1739885 -
/sling/site/trunk/content/documentation/bundles/scripting/scripting-sightly.mdtext
Author: radu
Date: Tue Apr 19 09:55:07 2016
New Revision: 1739885
URL: http://svn.apache.org/viewvc?rev=1739885&view=rev
Log:
CMS commit to sling by radu
Modified:
sling/site/trunk/content/documentation/bundles/scripting/scripting-sightly.mdtext
Modified: sling/site/trunk/content/documentation/bundles/scripting/scripting-sightly.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/scripting/scripting-sightly.mdtext?rev=1739885&r1=1739884&r2=1739885&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/scripting/scripting-sightly.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/scripting/scripting-sightly.mdtext Tue Apr 19 09:55:07 2016
@@ -248,8 +248,8 @@ Similar to the Java Use Provider, loadin
#### Passing parameters
Passed parameters will be made available to the Use object as properties of `this`. Assuming the following markup:
- <div data-sly-use.useObject="${'useObject.js' @ colour='red', year=2016}">
- ${useObject.shine}
+ <div data-sly-use.logic="${'logic.js' @ colour='red', year=2017}">
+ My colour is ${logic.colour ? logic.colour : 'not important'} and I'm from ${logic.year}
</div>
the object would be able to access the parameters like: