-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmarklet.py
executable file
·37 lines (35 loc) · 999 Bytes
/
bmarklet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from bottle import route, request, get, post
from index import header0, account_mgmt, list_tags, footer
def get_bmarklet():
"""Returns bookmarklet page/index content."""
return_data = ''
top = '''<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tasti</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body><div id="wrapper">
<div id="header">'''
return_data += top
return_data += header0()
return_data += '''</div>
<div id="faux">
<div id="leftcolumn">'''
return_data += account_mgmt()
return_data += '''<div class="clear"></div>
</div>
<div id="rightcolumn">
'''
return_data += list_tags()
return_data += '''<div class="clear"></div>
</div>
</div>
<div id="footer">'''
return_data += footer()
bottom = '''</div>
</div>
</body>
</html>'''
return_data += bottom
return return_data