We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8335f3 commit 1c8a71bCopy full SHA for 1c8a71b
doc/Ractive/temporary-variables-inside-each-loop.md
@@ -8,6 +8,17 @@
8
{{/with}}
9
{{/each}}
10
11
-`myobj` is not polluted with the `tmp` variables.
+`myobj` is not polluted by the `tmp` variables.
12
13
-(see https://gitter.im/ractivejs/ractive?at=5f3decae33878e7e602e58d7)
+(see https://gitter.im/ractivejs/ractive?at=5f3decae33878e7e602e58d7)
14
+
15
+> If you prefer to fill your original object permanently with the generated values,
16
+> use `{{@context.set()}}`:
17
+>
18
+> {{#each myobj}}
19
+> {{@context.set('.tmp', (.foo !== 'bar')) && ''}}
20
21
+> <!-- attention to the dot in front of variable -->
22
+> <li>{{.hello}} tmp is: {{.tmp}}</li>
23
24
+> {{/each}}
0 commit comments