<% if Dir.exist?("." + request.path_info) %>
<% if !Dir.children("." + request.path_info).grep(/erb/).empty? || !Dir.children("." + request.path_info).grep(/md/).empty? %>
<%= title %>
<% if File.exists?("." + request.path_info + "/tagline") %>
<% file = File.open("." + request.path_info + "/tagline") %>
<%= file.read %>
<% end %>
<%= erb :folderIndex %>
<%= erb :folderArchive, locals: {folder: request.path_info, title: title} %>
<% else %>
<%= erb :noFile %>
<% end %>
<% else %>
<%= erb :topbar %>
<%= erb :noFolder %>
<% end %>
<%= erb :bottom %>