Factory reset and splitted HTML into head, content and footer files to reduce memory footprint while parsing HTML templates

This commit is contained in:
Gunnar Skjold
2020-05-10 11:51:00 +02:00
parent 953f2d4110
commit efa99f970c
20 changed files with 778 additions and 953 deletions

View File

@@ -42,9 +42,7 @@ for filename in os.listdir(webroot):
dst.write(")==\"==\";\n")
dst.write("const int ");
dst.write(varname)
dst.write("_LEN = sizeof(");
dst.write(varname)
dst.write(")/sizeof(");
dst.write(varname)
dst.write("[0]);");
dst.write("_LEN = ");
dst.write(str(len(content)))
dst.write(";");