Skip to content
Snippets Groups Projects
Commit 3730aeca authored by Dirk Sarpe's avatar Dirk Sarpe
Browse files

adapt directory structure for better deployment

testing is still possible independent of deployment
parent 25778f28
Branches
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
# Notice the use of trim_blocks, which greatly helps control whitespace.
j2_env = Environment(loader=FileSystemLoader(this_dir),
trim_blocks=True)
output = j2_env.get_template('code/template.html').render(html_list = html_list)
out_file = open("code/events_jinja.html", "w")
output = j2_env.get_template('template.html').render(html_list = html_list)
out_file = open("website/events.html", "w")
out_file.write(output.encode("utf-8"))
out_file.close()
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment