|
|
|
@ -12,10 +12,15 @@ all_html = ""
|
|
|
|
|
all_md = ""
|
|
|
|
|
html=[]
|
|
|
|
|
|
|
|
|
|
folders = glob("./*")
|
|
|
|
|
folders = glob("*")
|
|
|
|
|
stoplist = ["00-booklet", "colophon", "spin-wheel"]
|
|
|
|
|
print(folders)
|
|
|
|
|
|
|
|
|
|
for folder in folders:
|
|
|
|
|
if folder in stoplist:
|
|
|
|
|
continue
|
|
|
|
|
print("...............")
|
|
|
|
|
print("current folder!",folder)
|
|
|
|
|
files = glob(folder + "/*")
|
|
|
|
|
print(files)
|
|
|
|
|
print("************")
|
|
|
|
@ -55,7 +60,7 @@ print("html has been generated!")
|
|
|
|
|
env = jinja2.Environment(loader=jinja2.FileSystemLoader("00-booklet"))
|
|
|
|
|
template = env.get_template("booklet.template.html")
|
|
|
|
|
booklet_html = template.render(content=html_data)
|
|
|
|
|
print("this is the html: ", booklet_html)
|
|
|
|
|
#print("this is the html: ", booklet_html)
|
|
|
|
|
output = open("00-booklet/booklet.html", "w")
|
|
|
|
|
output.write(booklet_html)
|
|
|
|
|
output.close()
|
|
|
|
|