mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
25 lines
735 B
Plaintext
25 lines
735 B
Plaintext
<ul>
|
|
<for|userId| of=[0, 1, 2, 3]>
|
|
<li>
|
|
<await(
|
|
data.userInfo.bind(null, {
|
|
userId: userId
|
|
})
|
|
) name=("user" + userId)>
|
|
<@then|userInfo|>
|
|
<ul>
|
|
<li>
|
|
<b>Name:</b> ${userInfo.name}
|
|
</li>
|
|
<li>
|
|
<b>Gender:</b> ${userInfo.gender}
|
|
</li>
|
|
<li>
|
|
<b>Occupation:</b> ${userInfo.occupation}
|
|
</li>
|
|
</ul>
|
|
</@then>
|
|
</await>
|
|
</li>
|
|
</for>
|
|
</ul> |