-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
First seen with pull request #5. The directions are have subheadings which cannot be parsed by the compiler.
## Directions
1. Place oven rack in the lower-middle position and preheat oven to 400°. Line a baking sheet with foil.
### Start the Squash
2. Brush or otherwise coat the squash with 2 Tbsp olive oil. Place the squash cut side down onto the prepared baking sheet and bake until easily pierced with a knife or skewer, 40-45 minutes. Proceed with the remaining steps as the squash roasts.
### Make the Breadcrumbs
(This step is optional-skip if using panko or other premade crumbs)
3. Melt 2 Tbsp butter in a large 12" skillet over medium heat.
4. Add the cubed bread and toss to coat in the melted butter. Continue to toast the bread until golden brown and crunchy, about 10 minutes. Sprinkle generously with salt and pepper and set aside on paper towel to drain.When the compiler is run, the following exception is raised:
Traceback (most recent call last):
File "/home/t_eck/code/forks/DevCookbook/compile.py", line 44, in <module>
[render_recipe_page(recipe, env) for recipe in recipes],
File "/home/t_eck/code/forks/DevCookbook/compile.py", line 44, in <listcomp>
[render_recipe_page(recipe, env) for recipe in recipes],
File "/home/t_eck/code/forks/DevCookbook/recipe_compiler/render.py", line 16, in render_recipe_page
return env.get_template("recipe.html").render(recipe=recipe)
File "/home/t_eck/code/forks/DevCookbook/.venv/lib/python3.9/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/home/t_eck/code/forks/DevCookbook/.venv/lib/python3.9/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/t_eck/code/forks/DevCookbook/.venv/lib/python3.9/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/t_eck/code/forks/DevCookbook/recipe_compiler/templates/recipe.html", line 1, in top-level template code
{% extends "index.html" %} {% block content %}
File "/home/t_eck/code/forks/DevCookbook/recipe_compiler/templates/index.html", line 15, in top-level template code
{% block content %} {% endblock content %}
File "/home/t_eck/code/forks/DevCookbook/recipe_compiler/templates/recipe.html", line 20, in block "content"
{% for ingredient in recipe.ingredients %}
TypeError: 'NoneType' object is not iterableThe parser should be changed to accept subheadings and display them correctly.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers