cloop HTML Element

<cloop>

The template system provides a special loop:

<cloop var="item" array="data->menu_items" count="data->menu_count">
    <li>{item:string}</li>
</cloop>

Important current detail:

  • The generator always declares the loop item as const char * in v0.3.0.
  • In the current state, it is therefore designed for string arrays, not generically for arbitrary element types.