html.xonsh/main.py

36 lines
604 B
Python
Executable File

#!/usr/bin/python
import readFile
outFile = ""
#outFile = outFile + ".html"
timeCreate = 0 #Do I want this to be a str?
timeMod = 0
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():
print("placeholder")
def css():
print("placeholder")
def main():
print("placeholder")
def test():
#print(readFile.readMarkdown("/home/amber/website.sh/sample.md"))
print(parseMd("sample.md"))
test()