blob: a6a14378245a7c7afa50a15ec12c8bafaa101c58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import path
from path import Path
import connect
from connect import Connect
whisper_file = open(Path.template("whisper.html"), 'r', encoding="utf8")
whisper_templ = whisper_file.read()
whisper_file.close()
class Whisper(object):
def build(_content, _date, _odd):
whisper = whisper_templ.format(\
oddoreven=((_odd == True) and "odd" or "even"),\
content=_content,\
date=_date\
)
return whisper
|