import variables from pathlib import Path """ Generate the skeleton for an HTML page. """ home = str(Path.home()) def headerwrite(output,section,local=False): header = open(output, "a") header.write("\n\n \n \n \n \n \n \n Selfhostery\n \n \n \n
\n
\n \n
\n
\n
\n") header.write(" Backlog\n Library\n History\n
\n") header.close() def footerwrite(output): footer = open(output, "a") footer.write("
\n
\n
\n
\n \n\n") footer.close() if __name__ == "__main__": headerwrite("build/backlog/index.html","backlog",True) footerwrite("test.html")