Skip to content

Commit 3d0a7d7

Browse files
authored
clarify blocks docs (#2060)
2 parents a12789e + 786d12b commit 3d0a7d7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ Released 2008-07-17, codename Jinjavitus
10011001
evaluates to ``false``.
10021002
- Improved error reporting for undefined values by providing a
10031003
position.
1004-
- ``filesizeformat`` filter uses decimal prefixes now per default and
1004+
- ``filesizeformat`` filter uses decimal prefixes now by default and
10051005
can be set to binary mode with the second parameter.
10061006
- Fixed bug in finalizer
10071007

docs/templates.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ However, the name after the `endblock` word must match the block name.
528528
Block Nesting and Scope
529529
~~~~~~~~~~~~~~~~~~~~~~~
530530

531-
Blocks can be nested for more complex layouts. However, per default blocks
532-
may not access variables from outer scopes::
531+
Blocks can be nested for more complex layouts. By default, a block may not
532+
access variables from outside the block (outer scopes)::
533533

534534
{% for item in seq %}
535535
<li>{% block loop_item %}{{ item }}{% endblock %}</li>

docs/tricks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ for a neat trick.
2121
Usually child templates extend from one template that adds a basic HTML
2222
skeleton. However it's possible to put the `extends` tag into an `if` tag to
2323
only extend from the layout template if the `standalone` variable evaluates
24-
to false which it does per default if it's not defined. Additionally a very
24+
to false, which it does by default if it's not defined. Additionally a very
2525
basic skeleton is added to the file so that if it's indeed rendered with
2626
`standalone` set to `True` a very basic HTML skeleton is added::
2727

src/jinja2/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class DictLoader(BaseLoader):
430430
431431
>>> loader = DictLoader({'index.html': 'source here'})
432432
433-
Because auto reloading is rarely useful this is disabled per default.
433+
Because auto reloading is rarely useful this is disabled by default.
434434
"""
435435

436436
def __init__(self, mapping: t.Mapping[str, str]) -> None:

0 commit comments

Comments
 (0)