You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
634 B
Plaintext

<div class="section section<%= rand(1..3) %>">
<% 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) + "<br>").result(binding) %>
<% end %>
<span class="seemore">
<b>
<span class="seedate"><%= date %></span>
</b>
<a class="seemorelink" href="/<%= file %>">Article Page</a>
</span>
</div>