html.xonsh/main.py

36 lines
604 B
Python
Raw Normal View History

#!/usr/bin/python
2022-03-03 02:00:20 +00:00
import readFile
2022-03-03 00:41:53 +00:00
outFile = ""
2022-03-03 02:00:20 +00:00
#outFile = outFile + ".html"
2022-03-03 00:41:53 +00:00
timeCreate = 0 #Do I want this to be a str?
timeMod = 0
2022-03-03 03:59:46 +00:00
m2h = "" # markdown 2 html
2022-03-03 00:41:53 +00:00
2022-03-03 03:59:46 +00:00
def printHtml(body):
2022-03-03 00:41:53 +00:00
print("placeholder")
2022-03-03 02:00:20 +00:00
file = open(outFile, 'w')
2022-03-03 03:59:46 +00:00
file.write(str(body))
2022-03-03 02:00:20 +00:00
2022-03-03 03:59:46 +00:00
file.close()
2022-03-03 00:41:53 +00:00
2022-03-03 03:59:46 +00:00
def parseMd(inFile):
m2h = readFile.readMarkdown(inFile)
return(m2h)
2022-03-03 00:41:53 +00:00
def metadata():
print("placeholder")
def css():
print("placeholder")
def main():
2022-03-03 02:40:58 +00:00
print("placeholder")
def test():
2022-03-03 03:59:46 +00:00
#print(readFile.readMarkdown("/home/amber/website.sh/sample.md"))
print(parseMd("sample.md"))
2022-03-03 02:40:58 +00:00
2022-03-03 03:59:46 +00:00
test()