Priprava na sablony i ve virtualnich datech - nefunguje na js, kvuli nedokonalemu Template engine

This commit is contained in:
Pavel Brychta 2020-10-28 09:39:34 +01:00
parent 58983e4b1b
commit bef0c335a1

View File

@ -84,7 +84,15 @@ def copyfiles(files, ffrom, where):
outfile = open(where + outf, 'wb') outfile = open(where + outf, 'wb')
outfile.write(infile.read()) outfile.write(infile.read())
outfile.close() outfile.close()
# else:
# if "istemplate" in entry and entry["istemplate"]:
# inf = entry["src"]
# with open(where + inf, 'r') as infile:
# print(where + inf + ' (ST)-> ' + where + inf)
# form = Template(infile.read()).substitute(templatevars)
# outfile = open(where + inf, 'w')
# outfile.write(form)
# outfile.close()
# Spojovani soubru # Spojovani soubru
def joinfilesindir(dir, outfile): def joinfilesindir(dir, outfile):