<% title = request.path_info[1..-1].capitalize %> <% title = title.slice(0..(title.index('/') - 1)) %> <%= title %> <%= erb :headerBoilerplate %> <%= erb :asidemenu %>
<%= erb :blogbar, locals: {title: title} %>
<% if File.exist?("." + request.path_info) && request.path_info.end_with?(".erb") %> <%= ERB.new(File.read("." + request.path_info)).result(binding) %> <% elsif File.exist?("." + request.path_info + ".erb") %> <%= ERB.new(File.read("." + request.path_info + ".erb")).result(binding) %> <% elsif File.exist?("." + request.path_info) && request.path_info.end_with?(".md") %> <%= markdown(File.read("." + request.path_info)) %> <% elsif File.exist?("." + request.path_info + ".md") %> <%= markdown(File.read("." + request.path_info + ".md")) %> <% end %> <% if File.exist?("." + request.path_info + ".meta") %> <% elsif File.exist?("." + request.path_info + ".erb.meta") %> <% elsif File.exist?("." + request.path_info + ".md.meta") %> <% end %>
<%= erb :bottom %>