From a21f2edfc9536c918bae0ef654f9f3ffb1c2b508 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Sun, 23 Oct 2011 18:23:58 +0200 Subject: [PATCH] Fix typos. --- docs/templates.rst | 4 ++-- jinja2/filters.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/templates.rst b/docs/templates.rst index 3032e3a..a21e331 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -332,7 +332,7 @@ advantage of it, see :ref:`null-master-fallback`. The filename of the template depends on the template loader. For example the :class:`FileSystemLoader` allows you to access other templates by giving the -filename. You can access templates in subdirectories with an slash:: +filename. You can access templates in subdirectories with a slash:: {% extends "layout/default.html" %} @@ -819,7 +819,7 @@ Jinja2 supports putting often used code into macros. These macros can go into different templates and get imported from there. This works similar to the import statements in Python. It's important to know that imports are cached and imported templates don't have access to the current template variables, -just the globals by defualt. For more details about context behavior of +just the globals by default. For more details about context behavior of imports and includes see :ref:`import-visibility`. There are two ways to import templates. You can import the complete template diff --git a/jinja2/filters.py b/jinja2/filters.py index 570263c..8fef6ea 100644 --- a/jinja2/filters.py +++ b/jinja2/filters.py @@ -583,7 +583,7 @@ def do_batch(value, linecount, fill_with=None): A filter that batches items. It works pretty much like `slice` just the other way round. It returns a list of lists with the given number of items. If you provide a second parameter this - is used to fill missing items. See this example: + is used to fill up missing items. See this example: .. sourcecode:: html+jinja -- 2.26.2