<% if file.end_with?(".md") %> <%= markdown(File.read(file)) %> <% elsif file.end_with?(".erb") %> <%= ERB.new(File.read(file)).result(binding) %> <% elsif file.end_with?(".bb") %> <% addtags = { :rbe => { html_open: "\<%=", html_close: "%\>" }, :rb => { html_open: "\<%", html_close: "%\>" } } %> <%= ERB.new(File.read(file).gsub("\n[rb]", '[rb]').bbcode_to_html(false, addtags) + "
").result(binding) %> <% end %> <%= date %> Article Page