olddoc.git  about / heads / tags
olddoc - old-fashioned RDoc generator(s)
blob 7fb4839ef285592aad1e06f80649c0181e117258 981 bytes (raw)
$ git show HEAD:lib/oldweb/_tail.rhtml	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
<%
public_email = @old_cfg['public_email']
private_email = @old_cfg['private_email']
source_code = Array(@old_cfg['source_code']).dup
archive_urls = Array(@old_cfg.values_at(*%W(ml_url nntp_url imap_url))).flatten
if url = archive_urls.shift %><hr /><pre>
mail archives: <a
href="<%= url %>"><%= url %></a><%
  archive_urls.each do |u| %>
	<a
href="<%= u %>"><%= u %></a> <%
  end # archive_urls.each
  if private_email || public_email %>
<%
    if public_email %>public: <a
href="mailto:<%= public_email %>"><%= public_email %></a><%
    end
    if private_email && public_email %> / <% end
    if private_email %>private: <a
href="mailto:<%= private_email %>"><%= private_email %></a><%
    end
  end

if url_or_cmd = source_code.shift
  url_or_cmd = url_or_cmd.sub(%r{\b(https?://\S+)}, "<a\nhref='\\1'>\\1</a>")
%>
source code: <%= url_or_cmd %>
<% source_code.each do |x| %><%=
  %Q{\t#{x.sub(%r{\b(https?://\S+)}, %Q{<a\nhref='\\1'>\\1</a>})}}
%><% end
end
%></pre><% end %>

git clone https://80x24.org/olddoc.git