1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00
react-templates/test/data/scope-variable-references.rt
2015-09-03 10:53:48 +03:00

12 lines
464 B
Plaintext

<div>
<div rt-repeat="foo in [1]" key="a{fooIndex}">
<!-- can't seem to have an object literal here; will deal with this separately -->
<div rt-scope="[{first: 'Jack', last: 'Sparrow', skills: ['talking', 'fighting', 'commandeering']}][0] as pirate; pirate.first as first">
<h1>{first} {pirate.last}</h1>
<div rt-scope="pirate.skills as skills">
<span rt-repeat="skill in skills" key="a{skillIndex}">{skill}</span>
</div>
</div>
</div>
</div>