remotes/1693045480750635534/spooky-22
fireworks88 2021-11-25 22:54:51 +01:00
parent f8f16b137c
commit cc698b999e
2 changed files with 21 additions and 0 deletions

View File

@ -123,6 +123,10 @@ def before_request():
elif "Mobile/" in ua: g.system="ios/webview"
else: g.system="other/other"
@app.get('/tw')
def get_tailwind():
return render_template('tailwind.html')
@app.teardown_appcontext
def teardown_request(error):
if hasattr(g, 'db') and g.db:

View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% assets 'css' %}
<link rel="stylesheet" href="{{ ASSET_URL }}">
{% endassets %}
<title>Flask + Tailwind CSS</title>
</head>
<body class="bg-blue-100">
<h1 class="text-gray-700 font-bold text-3xl">hello world</h1>
</body>
</html>