Skip to content

Commit

Permalink
Merge pull request #38 from davidomarf/script-include
Browse files Browse the repository at this point in the history
Send the full sketch dict to the sketch page renderer.

Instead of sending just the name, delegate some logic to the Jinja2
template to render different things in function of sketch["data"].

This, and an appropiate update to @davidomarf/gart, should fix #34.
  • Loading branch information
davidomarf committed Nov 4, 2019
2 parents 4338699 + e839c16 commit 8336ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ginpar/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def render_sketch_page(build_path, sketch, site, page_template, input_templates)
sketch_index = open(f"public/{sketch['name']}/index.html", "w+")
sketch_index.write(
page_template.render(
sketch=unkebab(sketch["name"]),
sketch=sketch,
form="<form>\n" + content + "\n</form>",
site=site,
)
Expand Down

0 comments on commit 8336ea8

Please sign in to comment.