#!/usr/bin/python import readFile import datetime outFile = "" #outFile = outFile + ".html" timeCreate = "" timeMod = "" m2h = "" # markdown 2 html def printHtml(body): print("placeholder") file = open(outFile, 'w') file.write(str(body)) file.close() def parseMd(inFile): m2h = readFile.readMarkdown(inFile) return(m2h) def metadata(inFile): # Read metadata from possible file ## Pretend there's code here # Generate metadata getTime = datetime.datetime.now() timeMod = str(getTime.strftime("%A, %B %d, %Y at %X UTC−06:00")) #TODO: I don't want to hard-code this but the %z utc offset isn't printing timeCreate = timeMod title = inFile.split(".") title = str(title[0]) #TODO: figure out a way to make longer titles without putting spaces in the filename def css(): print("placeholder") def main(): print("placeholder") def test(): #print(readFile.readMarkdown("/home/amber/website.sh/sample.md")) print(parseMd("sample.md")) metadata("sample.md") test()