This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Iteration
This example is about iteration.
For each entry we get in the JSON we want a new row in the table
The HTML:
<table class="players">
<thead>
<tr><th class="player">Player</th></tr>
</thead>
<tbody>
<tr class="context">
<td class="player context">Chloe</td>
</tr>
</tbody>
</table>
The JSON data:
var json =
[ "Alice Keasler",
"Charles LeGrand",
"Gary Bitemning",
"Helen Moren" ]
The Javascript to do this action (here with jQuery):
$( 'table.players' ).autoRender( json );
Note:
Here the special keword ‘context’ is used when we want to access the root property of the JSON.
It is described in details at the ‘context’ notation






