<% title = request.path_info[1..-1].capitalize.gsub(/\/$/, "") %> <%= title %> <%= erb :headerBoilerplate %> <%= erb :asidemenu %>
<% 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 %> <% else %> <%= erb :noFile %> <% end %> <% else %> <%= erb :noFolder %> <% end %>
<%= erb :bottom %>