innerhtml-mustache

Put a mustache template as a child in the HTML element.


<ul ph-data-consumer="innerhtml-mustache:any-custom-value">
  id="data-consumer"
  <template>
    {{#data}}
    <li>{{name}}({{id}})</li>
    {{/data}}
  </template>
</ul>

<tbody
  ph-group-id="table1"
  ph-data-consumer="innerhtml-mustach:any-custom-value"
>
  
  <template>
    {{#data}}
    <tr>
      <td>
        <input
          type="checkbox"
          ph-row-selector="todo"
          id="_row_{{id}}"
        />
      </td>
      <td>{{id}}</td>
      <td>{{task}}</td>
      <td>{{dueDate}}</td>
      <td>{{priority}}</td>
    </tr>
    {{/data}}
  </template>
  
</tbody>

Back to top

Discord, QQ group:418474680