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> i wonder how small camping could become if it was a rubyish exoskeleton for plugging together Rack tidbits. 1K? _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list