File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,8 @@ Routes Can Be Dynamic
451451---------------------
452452
453453You can provide *placeholders * in dynamic urls. Each *placeholder * is then a
454- named arg to your function (add these to ``flask_intro.py ``):
454+ named arg to your function (add these to ``flask_intro.py `` (and delete the
455+ 1/0 bit)):
455456
456457.. code-block :: python
457458 :class : incremental small
@@ -496,7 +497,7 @@ After adding that to ``flask_intro.py`` and saving, try loading
496497Routes Can Be Reversed
497498----------------------
498499
499- Reversing a URL means the ability to generating the url that would result in a
500+ Reversing a URL means the ability to generate the url that would result in a
500501given endpoint being called.
501502
502503.. class :: incremental
@@ -590,7 +591,7 @@ There are a few basic things to know:
590591* Variables in templates can be printed by surrounding the variable name with
591592 double curly braces: ``{{ name }} ``.
592593* If a variable points to something like a dictionary or object, you can use
593- *either * dot or subscription notation: ``{{ obj[attr] }} ``, ``{{ dict.key
594+ *either * dot or subscript notation: ``{{ obj[attr] }} ``, ``{{ dict.key
594595 }} ``.
595596* Variables in templates can be *filtered *: ``{{ name|capitalize }} ``. There
596597 is a list of builtin filters.
You can’t perform that action at this time.
0 commit comments