mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
/ template
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
html:
|
||||
|
||||
ronn -5 ./httpbin.1.md --pipe > ../httpbin/static/index.html
|
||||
ronn -5 ./httpbin.1.md --pipe > ../httpbin/templates/httpbin.1.html
|
||||
+18
-1
@@ -1,2 +1,19 @@
|
||||
# HttpBin: PostBin++
|
||||
httpbin(1): HTTP Client Testing Service
|
||||
=======================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
## CONFIGURATION
|
||||
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
## AUTHORS
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
|
||||
|
||||
|
||||
+2
-3
@@ -19,10 +19,9 @@ def to_json(*args, **kwargs):
|
||||
data = dict(*args, **kwargs)
|
||||
return json.dumps(data)
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return to_json(hello='world')
|
||||
def view_help():
|
||||
render_template('httpbin.1.html')
|
||||
|
||||
|
||||
@app.route('/headers')
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>httpbin(1) - HttpBin: PostBin++</title>
|
||||
<title>httpbin(1) - httpbin(1): HTTP Client Testing Service</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
@@ -53,6 +53,12 @@
|
||||
<div class='mp' id='man'>
|
||||
|
||||
<div class='man-navigation' style='display:none'>
|
||||
<a href="#SYNOPSIS">SYNOPSIS</a>
|
||||
<a href="#DESCRIPTION">DESCRIPTION</a>
|
||||
<a href="#CONFIGURATION">CONFIGURATION</a>
|
||||
<a href="#EXAMPLES">EXAMPLES</a>
|
||||
<a href="#AUTHORS">AUTHORS</a>
|
||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
||||
</div>
|
||||
|
||||
<ol class='man-decor man-head man head'>
|
||||
@@ -61,7 +67,19 @@
|
||||
<li class='tr'>httpbin(1)</li>
|
||||
</ol>
|
||||
|
||||
<h1>HttpBin: PostBin++</h1>
|
||||
<h1>httpbin(1): HTTP Client Testing Service</h1>
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
<h2 id="CONFIGURATION">CONFIGURATION</h2>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
||||
<h2 id="AUTHORS">AUTHORS</h2>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
Reference in New Issue
Block a user