Skip to content Skip to sidebar Skip to footer

How Can Accomplish For-Each Loop From The Underscore Template To Mustache

I have an underscore template and I have to use Mustache to render it. Below is my underscore template:

something

Solution 1:

should be something like that. didn't check though.

<div id="sub-account">
    <p>something</p>
  <table>
    <tr><td>Name</td>

    </tr>
    <tbody>
        {{#accountList}}
            <tr>
                <td>{{name}}</td>

            </tr>
        {{/accountList}}
    </tbody>
  </table>

 </div>

Post a Comment for "How Can Accomplish For-Each Loop From The Underscore Template To Mustache"