<%= "component_#{name}" %>: <%= name %>
<%- unless generics.size.empty? %>
  generic map(
      <%= generic_mappings %>
         )
<%- end %>
<%- unless ports.size.empty? %>
  port map(
      <%= port_mappings %>
       )
<%- end %>
;

<%= "component_#{name}" %>: <%= name %>
<%- unless generics.empty? -%>
  generic map(
      <%= generic_mappings %>
         )
<%- end -%>
<%- unless ports.empty? -%>
  port map(
      <%= port_mappings %>
       )
<%- end -%>
;

Fix component_map template type error
Fix component_map template type error
