booklet fixed html

main
ada 2 years ago
parent b365600add
commit ba0a465574

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

Loading…
Cancel
Save