Skip to content

Commit 63b6520

Browse files
committed
Fixed typos
1 parent 37e6590 commit 63b6520

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ but it does not implement all of their features and takes a different approach t
3030

3131
Main diffrences from Jinja2 and Django Templates:
3232

33-
- filter are not supported, and there is no plan to support them
33+
- filters are not supported, and there is no plan to support them
3434
- all variables passed inside context must be accessed using the ``context`` object
3535
- you can call methods inside templates just like in Python
3636
- no support for nested blocks, although inheritance is supported

docs/examples.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ It is up to the user to decide which method is more suitable for a given use cas
2727
**Generally, the first method will be sufficient for most use cases.**
2828

2929
It is also worth noting that compiling all used templates using the second method might not be possible,
30-
depending one the project and board used, due to the limited amount of RAM.
30+
depending on the project and board used, due to the limited amount of RAM.
3131

3232
.. literalinclude:: ../examples/templateengine_reusing.py
3333
:caption: examples/templateengine_reusing.py
@@ -51,7 +51,7 @@ Every expression that would be valid in an f-string is also valid in the templat
5151
This includes, but is not limited to:
5252

5353
- mathemathical operations e.g. ``{{ 5 + 2 ** 3 }}`` will be replaced with ``"13"``
54-
- string operations e.g. ``{{ 'hello'.title() }}`` will be replaced with ``"Hello"``
54+
- string operations e.g. ``{{ 'hello'.upper() }}`` will be replaced with ``"HELLO"``
5555
- logical operations e.g. ``{{ 1 == 2 }}`` will be replaced with ``"False"``
5656
- ternary operator e.g. ``{{ 'ON' if True else 'OFF' }}`` will be replaced with ``"ON"``
5757
- built-in functions e.g. ``{{ len('Adafruit Industries') }}`` will be replaced with ``"19"``
@@ -253,6 +253,7 @@ and in all ``Template`` constructors.
253253

254254
.. literalinclude:: ../examples/autoescape.md
255255
:caption: examples/autoescape.md
256+
:lines: 5-
256257
:language: markdown
257258
:linenos:
258259

0 commit comments

Comments
 (0)