<div id="<%%= slot_code %>" class="component <%= file_name.gsub(/_/ig, '-') %> <%%= 'double' if expand %> <%%= additional_classes %>">
<% unless attributes.empty? %>
  <dl>
  <% for attribute in attributes -%>
      <dt><%= attribute.name.titleize %></dt>
      <dd><%%= component.<%= attribute.name %>%></dd>
  <% end -%>
  </dl>
<% end -%>
</div>


<div id="<%%= slot_code %>" class="component <%= file_name.gsub(/_/, '-') %> <%%= 'double' if expand %> <%%= additional_classes %>">
<% unless attributes.empty? %>
  <dl>
  <% for attribute in attributes -%>
      <dt><%= attribute.name.titleize %></dt>
      <dd><%%= component.<%= attribute.name %>%></dd>
  <% end -%>
  </dl>
<% end -%>
</div>


Fix to component generator introduced by regex bug
Fix to component generator introduced by regex bug
