Skip to content

Commit

Permalink
clarify blocks docs (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Dec 18, 2024
2 parents a12789e + 786d12b commit 3d0a7d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ Released 2008-07-17, codename Jinjavitus
evaluates to ``false``.
- Improved error reporting for undefined values by providing a
position.
- ``filesizeformat`` filter uses decimal prefixes now per default and
- ``filesizeformat`` filter uses decimal prefixes now by default and
can be set to binary mode with the second parameter.
- Fixed bug in finalizer

Expand Down
4 changes: 2 additions & 2 deletions docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ However, the name after the `endblock` word must match the block name.
Block Nesting and Scope
~~~~~~~~~~~~~~~~~~~~~~~

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

{% for item in seq %}
<li>{% block loop_item %}{{ item }}{% endblock %}</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/tricks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for a neat trick.
Usually child templates extend from one template that adds a basic HTML
skeleton. However it's possible to put the `extends` tag into an `if` tag to
only extend from the layout template if the `standalone` variable evaluates
to false which it does per default if it's not defined. Additionally a very
to false, which it does by default if it's not defined. Additionally a very
basic skeleton is added to the file so that if it's indeed rendered with
`standalone` set to `True` a very basic HTML skeleton is added::

Expand Down
2 changes: 1 addition & 1 deletion src/jinja2/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class DictLoader(BaseLoader):
>>> loader = DictLoader({'index.html': 'source here'})
Because auto reloading is rarely useful this is disabled per default.
Because auto reloading is rarely useful this is disabled by default.
"""

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

0 comments on commit 3d0a7d7

Please sign in to comment.