test
This commit is contained in:
parent
f440b8f263
commit
7e54a70eee
2 changed files with 21 additions and 0 deletions
|
@ -123,6 +123,10 @@ def before_request():
|
||||||
elif "Mobile/" in ua: g.system="ios/webview"
|
elif "Mobile/" in ua: g.system="ios/webview"
|
||||||
else: g.system="other/other"
|
else: g.system="other/other"
|
||||||
|
|
||||||
|
@app.get('/tw')
|
||||||
|
def get_tailwind():
|
||||||
|
return render_template('tailwind.html')
|
||||||
|
|
||||||
@app.teardown_appcontext
|
@app.teardown_appcontext
|
||||||
def teardown_request(error):
|
def teardown_request(error):
|
||||||
if hasattr(g, 'db') and g.db:
|
if hasattr(g, 'db') and g.db:
|
||||||
|
|
17
files/templates/tailwind.html
Normal file
17
files/templates/tailwind.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue