mirror of
https://github.com/not-kennethreitz/markdownplease.com.git
synced 2026-06-05 23:20:19 +00:00
better htmls
This commit is contained in:
@@ -4,7 +4,6 @@ from flask import Flask, request, redirect, url_for, render_template
|
||||
from converter import meh
|
||||
|
||||
app = Flask(__name__)
|
||||
app.debug = True
|
||||
|
||||
@app.route('/')
|
||||
def fuck_gpl2():
|
||||
@@ -18,8 +17,3 @@ def fuck_gpl2():
|
||||
return '404 Not Found', 404
|
||||
else:
|
||||
return render_template('index.html')
|
||||
|
||||
@app.route('/', methods=['POST', 'PUT'])
|
||||
def lazy_301():
|
||||
url = request.form.get('url')
|
||||
redirect(url_for('fuck_gpl2'), url=url)
|
||||
@@ -13,7 +13,9 @@ a Markdown representation of that page.</p>
|
||||
<button type='submit'>Submit</button>
|
||||
</form>
|
||||
|
||||
<p>Enjoy!</p>
|
||||
<p>A <a href='http://kennethreitz.org/'>Kenneth Reitz</a> project.</p>
|
||||
|
||||
<a href="https://github.com/kennethreitz/url2markdown"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user