diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-04-29 21:15:02 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-04-29 21:15:02 +1200 |
commit | 1431b36c4a226dc9b57a3334364a0c40162c388f (patch) | |
tree | a2e65e7cecad73c6e579ef63c3358f5baa4afb78 /libpathod/templates/preview.html | |
parent | 37e880b3990e2729d857b0f3a24f80d45116b7f0 (diff) | |
download | mitmproxy-1431b36c4a226dc9b57a3334364a0c40162c388f.tar.gz mitmproxy-1431b36c4a226dc9b57a3334364a0c40162c388f.tar.bz2 mitmproxy-1431b36c4a226dc9b57a3334364a0c40162c388f.zip |
Preview in web application.
Diffstat (limited to 'libpathod/templates/preview.html')
-rw-r--r-- | libpathod/templates/preview.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libpathod/templates/preview.html b/libpathod/templates/preview.html new file mode 100644 index 00000000..6599362f --- /dev/null +++ b/libpathod/templates/preview.html @@ -0,0 +1,28 @@ +{% extends frame.html %} +{% block body %} + +<h1>Preview</h1> + +{% if syntaxerror %} + <h2> Error: {{ syntaxerror }} </h2> + <pre>{{ marked }}</pre> +{% elif error %} + <h2> Error </h2> + <p style="color: #ff0000">{{ error }}</p> +{% else %} + + <h2>Spec:</h2> + + <pre>{{ spec }}</pre> + + <h2>Response:</h2> + + <pre>{{ output }}</pre> + +{% end %} + <form class="well form-search" method="GET" action="/preview"> + <input style="width: 30em;" name="spec" class="input-medium search-query" value="{{spec}}"> + <input type="submit" class="btn" value="preview"> + <a href="#" class="btn">go</a> + </form> +{% end %} |