Hi cdr - thanks for this, but I've not been able to do key value on
the Rack envs as some seem to have a different format - see the other
post I added to this thread - DaveE
how Rack env vars are stored, and how
to get a nice printout?
i defined #to_html on everything. on Array thats
map(&:html).join ', '
on Hash it prints a <table>, Object is html_escape(to_s)
Rack just iterates thru env in an ERB template:
<h3 id="env-info">Rack ENV</h3>
<table class="req">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<% env.sort_by { |k, v| k.to_s }.each { |key, val| %>
<tr>
<td><%=h key %></td>
<td class="code"><div><%=h val %></div></td>
</tr>
<% } %>
</tbody>
</table>
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list