$def with (t)
<div class="task-div" id="$t.id">
<div>
<input class="tcheckbox" type="checkbox" id="tcb$t.id" name="tids" value="$t.id" \
$if t.doable: />\
$elif t.done: disabled="disabled" checked="checked" />\
$else:        disabled="disabled" />\
<label for="tcb$t.id">
<span class="tid">$t.id</span>
<span class="tprojects">\
$for p in t.projects: $p \
</span>
<span class="tcontexts">\
$for c in t.contexts: $c \
</span>
<span class="ttitle $t.css_classes">$t.title1</span>
$if t.urgency and t.is_cal_future(3, True): <span class="turgency">($t.urgency)</span>
</label>\
$if t.started:&nbsp;| <span class="tistart clock_go">Started</span>
<span class="ticonsbar hide">&nbsp;| \
<span class="tidetails zoom_in">Details</span>&nbsp;| \
<a href="/edit?tid=$t.id" title="edit" class="tiedit clock_edit">Edit</a>\
</span>
</div>
<div class="tsummary-div hide">
<div class="tbody">$t.get_htbody(128)</div>
</div>
<div class="tbody-div hide">
<div class="tprefix-div">
<div class="tprefix">
$if t.urgency: <span class="turgency">($t.urgency)</span>
</div>
</div>
<div class="tbody">$t.htbody</div>
<div class="ttag-div">
$for name, value in t.get_props().items(): <div class="ttag">$name=$value</div>
</div>
</div>
</div>