1 <div class="widget{{if $class}} {{$class}}{{/if}}">
2 {{if $title}}<h3>{{$title}}</h3>{{/if}}
3 {{if $desc}}<div class="desc">{{$desc}}</div>{{/if}}
6 {{foreach $items as $item}}
7 <li class="tool"><a href="{{$item.url}}" class="{{if $item.selected}}selected{{/if}}">{{$item.label}}</a></li>