title: Handlebars add class
body: <p>I have following JSON:</p>
  
  <pre><code> "daysRange": {
      "status": "UNSPECIFIED/ALL/SPECIFIED",
      "available": [
        {
          "id": "1",
          "name": "MONDAY"
        },
        {
          "id": "2",
          "name": "TUESDAY"
        },
        {
          "id": "3",
          "name": "WEDNESDAY"
        },
        {
          "id": "4",
          "name": "THURSDAY"
        },
        {
          "id": "5",
          "name": "FRIDAY"
        },
        {
          "id": "6",
          "name": "SATURDAY"
        },
        {
          "id": "7",
          "name": "SUNDAY"
        }
      ],
      "selected": [
        {
          "id": "2",
          "name": "TUESDAY"
        }
      ]
    }
  </code></pre>
  
  <p>I'm using handlebars like this to generate li's:</p>
  
  <pre><code>     &lt;ul class="available"&gt;
          {{#each daysRange.available}}
            &lt;li data-id="{{this.id}}"&gt;{{this.name}}&lt;/li&gt;
          {{/each}}
       &lt;/ul&gt;  
  </code></pre>
  
  <p><strong>Question:</strong> How can I add class selected to selected days? I'll appreciate is someone can shed some light on this.</p>