aboutsummaryrefslogtreecommitdiffstats
path: root/src/rest/templates/emitter.html
blob: c8ddc16df01c675c3bf60905dc35bc3da54fa53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% load urlize_quoted_links %}<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style>
      pre {border: 1px solid black; padding: 1em; background: #ffd}
    </style>
  </head>
  <body>
    <h1>{{ resource_name }}</h1>
    <p>{{ resource_doc }}</p>
    <pre>{% autoescape off %}<b>{{ status }} {{ reason }}</b>
{% for key, val in headers.items %}<b>{{ key }}:</b> {{ val }}
{% endfor %}
{{ content|urlize_quoted_links }}{% endautoescape %}    </pre>
  </body>
</html>