import colorsys 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") rgb = colorsys.hls_to_rgb((variables.hue)/360,0.3,0.45) hexstring = "" for element in rgb: hexstring += str(hex(int(element * 255)))[2:] header.write("\n\n \n \n \n \n \n \n Static backlog\n \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")