From 44793a805ea2c423f20bd9baa32ee34e2efaee50 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 13 Jun 2011 13:13:14 -0400 Subject: [PATCH] index.html wrapper template --- httpbin/core.py | 2 +- httpbin/templates/index.html | 71 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 httpbin/templates/index.html diff --git a/httpbin/core.py b/httpbin/core.py index e01cf7f..764b9af 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -88,7 +88,7 @@ def gzip_response(f, *args, **kwargs): @app.route('/') def view_landing_page(): """Generates Landing Page.""" - return render_template('httpbin.1.html') + return render_template('index.html') @app.route('/ip') diff --git a/httpbin/templates/index.html b/httpbin/templates/index.html new file mode 100644 index 0000000..c39f612 --- /dev/null +++ b/httpbin/templates/index.html @@ -0,0 +1,71 @@ + + + + + + httpbin(1): HTTP Client Testing Service + + + + + +Fork me on GitHub + +{% include 'httpbin.1.html' %} + + + + +