Permalink
Browse files

Put headers in a comment.

The weird template output formatting is due to whitespace handling in
the django template system.

If you format the source in a pretty way, it double-spaces the
headers.  If you put it all on one line, it doesn't space them at all.
So I put it on two lines.  :/
  • Loading branch information...
1 parent a067001 commit 5d919c2616ea546191d37d01b2918bf02c17246d @dustin dustin committed Jul 1, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 templates/bin.html
View
@@ -11,6 +11,10 @@
--
{{ post.remote_addr }}
{% if post.query_string %}?{{ post.query_string }}{% endif %}
+ <!-- Headers:
+ {% for h in post.headers.items %}{{ h.0 }}: {{ h.1 }}
+ {% endfor %}
+ -->
</div>
<dl>
{% for part in post %}

0 comments on commit 5d919c2

Please sign in to comment.