Priprava na sablony i ve virtualnich datech - nefunguje na js, kvuli nedokonalemu Template engine
This commit is contained in:
parent
58983e4b1b
commit
bef0c335a1
10
generate.py
10
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):
|
||||
|
Loading…
Reference in New Issue
Block a user