From bef0c335a1020045095e321ef69a68104373f8a6 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Wed, 28 Oct 2020 09:39:34 +0100 Subject: [PATCH] Priprava na sablony i ve virtualnich datech - nefunguje na js, kvuli nedokonalemu Template engine --- generate.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/generate.py b/generate.py index c52e00a..4631e05 100644 --- a/generate.py +++ b/generate.py @@ -84,7 +84,15 @@ def copyfiles(files, ffrom, where): outfile = open(where + outf, 'wb') outfile.write(infile.read()) 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 def joinfilesindir(dir, outfile):