adding neighbor view, increment version

This commit is contained in:
endorphant
2016-05-02 11:26:51 -04:00
parent 1282e20c03
commit 9b8d321812
4 changed files with 61 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
#!/usr/bin/python
import os
import time
import chatter
SOURCE = os.path.join("/home", "endorphant", "projects", "ttbp", "bin")
@@ -55,16 +57,22 @@ def load_files():
def write(outurl="default.html"):
outfile = open(os.path.join(WWW, outurl), "w")
outfile.write("<!--generated by the tilde.town blogging platform on "+time.strftime("%d %B %y")+"\nhttp://tilde.town/~endorphant/ttbp/-->\n\n")
for line in HEADER:
outfile.write(line)
#for line in write_placeholder():
# outfile.write(line)
outfile.write("\n")
for file in FILES:
for line in write_entry(file):
outfile.write(line)
outfile.write("\n")
for line in FOOTER:
outfile.write(line)