]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fix typo
authorÉric Araujo <merwok@netwok.org>
Fri, 29 May 2015 20:57:10 +0000 (16:57 -0400)
committerMarkus Unterwaditzer <markus@unterwaditzer.net>
Mon, 1 Jun 2015 15:05:27 +0000 (17:05 +0200)
docs/api.rst
jinja2/loaders.py

index 3fa806190cdc2670964b2f6e4952310f4db64073..088c86732080871035d144de5ba8728c0071ace4 100644 (file)
@@ -44,7 +44,7 @@ To render it with some variables, just call the :meth:`render` method::
 
     print template.render(the='variables', go='here')
 
-Using a template loader rather then passing strings to :class:`Template`
+Using a template loader rather than passing strings to :class:`Template`
 or :meth:`Environment.from_string` has multiple advantages.  Besides being
 a lot easier to use it also enables template inheritance.
 
index 376e85852387e74abbf5045a98e43a7f77062d88..44aa3925a2d11eb037de0ebab3378f126da12dc8 100644 (file)
@@ -291,7 +291,7 @@ class DictLoader(BaseLoader):
 
 class FunctionLoader(BaseLoader):
     """A loader that is passed a function which does the loading.  The
-    function becomes the name of the template passed and has to return either
+    function receives the name of the template and has to return either
     an unicode string with the template source, a tuple in the form ``(source,
     filename, uptodatefunc)`` or `None` if the template does not exist.