class SectionDlistTemplate

def template

def template
  @template ||= ERB.new <<-EOF
    <div class='dlist'>
      <dl>
        <% content.each do |dt, dd| %>
          <dt class='hdlist1'>
            <% if !dt.anchor.nil? and !dt.anchor.empty? %>
            <a id='<%= dt.anchor %>'></a>
            <% end %>
            <%= dt.text %>
          </dt>
          <% unless dd.nil? %>
            <dd>
              <p><%= dd.text %></p>
              <% if !dd.blocks.empty? %>
              <%= dd.content %> 
              <% end %>
            </dd>
          <% end %>
        <% end %>
      </dl>
    </div>
  EOF
end