<% Dir.entries(@dir_to_list).each do |dir| %>
  <% unless dir == '.' || dir == '..' then %>
    <div>
      <a href="<%= "#{@context}/#{dir}" %>">
        <%# .to_s stops errors about void variable %>
        <%= dir.to_s %>
      </a>
    </div>
    <% end %>
<% end %>

<% Dir.entries(@dir_to_list || dir_to_list).each do |dir| %>
  <% unless dir == '.' || dir == '..' then %>
    <div>
      <a href="<%= "#{@context}/#{dir}" %>">
        <%# .to_s stops errors about void variable %>
        <%= dir.to_s %>
      </a>
    </div>
    <% end %>
<% end %>

Update dir listing partial to accept local var
Update dir listing partial to accept local var

To allow places where creating an `@dir_to_list` var is not practical
(or good practice) to just pass a local variable `dir_to_list` to the
partial.
