diff --git a/bin/config/footer.txt b/bin/config/footer.txt new file mode 100644 index 0000000..5b6e2d6 --- /dev/null +++ b/bin/config/footer.txt @@ -0,0 +1,3 @@ + + + diff --git a/bin/config/header.txt b/bin/config/header.txt new file mode 100644 index 0000000..cffc052 --- /dev/null +++ b/bin/config/header.txt @@ -0,0 +1,11 @@ + + + + ~endorphant + + + +
+

~endorphant@tilde.town

+
+ diff --git a/bin/tlog.py b/bin/tlog.py new file mode 100644 index 0000000..7f270d8 --- /dev/null +++ b/bin/tlog.py @@ -0,0 +1,46 @@ +#!/usr/bin/python + +import os + +WWW = os.path.join("..","www") +CONFIG = os.path.join("config") + +HEADER = [] +FOOTER = [] + +infile = open(os.path.join(CONFIG, "header.txt"), 'r') +for line in infile: + HEADER.append(line.rstrip()) +infile.close() + +infile = open(os.path.join(CONFIG, "header.txt"), 'r') +for line in infile: + FOOTER.append(line.rstrip()) +infile.close() + +def write(outurl): + outfile = open(os.path.join(WWW, outurl), "w") + + for line in HEADER: + outfile.write(line) + + for line in write_placeholder(): + outfile.write(line) + + for line in FOOTER: + outfile.write(line) + + outfile.close() + +def write_placeholder(): + + entry = [ + "
", + "



", + "
", + "
DD month YYYY
", + "

Feacby waeohaku aywoaeeo fepopo lyhili todepoae, taenga. Ypaogeni, ypnorani geahwaga diioanee aotrilco, aenoail. Oypo, weahipae kucogoyp fyeoim kyreeo? El godineng fengo aheoba himalidi trcoimao imypfe oaeha. In, trratr amlypoga cohitata macoipta? Ta, yeahta ahoyio, feanikre taneypel, bynekuim, enoyha. Adahilre, lylyno, aetaay aoimeo taquam toegeem? Rebyma maquag qunohi, fekyno fyniypdi. Eoaeby ikaeem goenkuao enacli, taliel agerhaza quema nonoimli. Ad amcory, aeypye raanaban lyaekuto coyega, adionige?

", + "
" + ] + + return entry