about summary refs log tree commit diff
path: root/bh20simplewebuploader/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/main.py')
-rw-r--r--bh20simplewebuploader/main.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index a30d350..eb9a0f5 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -428,7 +428,19 @@ def blog_page():
 
 @app.route('/about')
 def about_page():
-    return render_template('about.html',menu='ABOUT')
+    buf = ""
+    in_body = False
+    begin_body = re.compile(r"<body>",re.IGNORECASE)
+    end_body = re.compile(r"(</body>|.*=\"postamble\")",re.IGNORECASE)
+    with open('doc/web/about.html') as f:
+        for line in f:
+            if end_body.match(line):
+                break
+            if in_body:
+                buf += line
+            elif begin_body.match(line):
+                in_body = True
+    return render_template('about.html',menu='ABOUT',embed=buf)
 
 ## Dynamic API functions starting here
 ## This is quick and dirty for now, just to get something out and demonstrate the queries