<a class="dropdown-toggle" data-toggle="dropdown" href="{{ d.href }}">{{ d.label }}<b class="caret"></b></a>
<ul class="dropdown-menu">
{% for dd in d.contents %}
{% if dd.is_active %}<li class='active'>{% else %}<li class='other'>{% endif %}
<a class="dropdown-toggle" data-toggle="dropdown" href="{{ d.href }}">{{ d.label }}<b class="caret"></b></a>
<ul class="dropdown-menu">
{% for dd in d.contents %}
{% if dd.is_active %}<li class='active'>{% else %}<li class='other'>{% endif %}