title: Flask - how to dynamically set 'checked' property to an input checkbox
body: <p>How can I dynamically add <code>checked</code> property to my input checkbox, assuming my <code>object</code> has an <code>active</code> property?</p>
  
  <pre class="lang-html prettyprint-override"><code>{% for object in objects %}
      &lt;li&gt;
          &lt;input type="checkbox" id="id_{{object.id}}" name="checkbox" value={{object.id}}&gt;
      &lt;/li&gt;
  {% endfor %}
  </code></pre>
  
  <p>Adding <code>checked="{{object.active}}"</code> did not work.</p>