% n = 1 %>
<% if @directory.children %>
<% @directory.children.sort {|x,y| x.value.to_s <=> y.value.to_s }.each_with_index do |child,index| %>
<% if child.is_a?(YARD::CodeObjects::Cucumber::Feature) %>
-
<%= linkify child, child.value %>
<%= child.location %>
<% end %>
<% if child.is_a?(YARD::CodeObjects::Cucumber::FeatureDirectory) %>
-
<%= "" unless child.features.empty? && child.subdirectories.empty? %>
<%= linkify child, child.value.to_s.capitalize %>
<%= child.location %>
<%= directory_node child %>
<% end %>
<% n = n == 2 ? 1 : 2 %>
<% end %>
<% end %>