Skip to content
Myr

Fix typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Éric Araujo · committed by Markus Unterwaditzer · parent 46acbf0 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:docs/api.rst+1 added-1 removed
42 unmodified lines
43To render it with some variables, just call the :meth:`render` method::4445 print template.render(the='variables', go='here')4647Using a template loader rather then passing strings to :class:`Template`47Using a template loader rather than passing strings to :class:`Template`48or :meth:`Environment.from_string` has multiple advantages. Besides being49a lot easier to use it also enables template inheritance.5051
757 unmodified lines
modified:jinja2/loaders.py+1 added-1 removed
289 unmodified lines
290291292class FunctionLoader(BaseLoader):293 """A loader that is passed a function which does the loading. The294 function becomes the name of the template passed and has to return either294 function receives the name of the template and has to return either295 an unicode string with the template source, a tuple in the form ``(source,296 filename, uptodatefunc)`` or `None` if the template does not exist.297298 >>> def load_template(name):
183 unmodified lines