Skip to content
Myr

Fix typos.

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

authored by Christoph Zwerschke · committed by Ron DuPlain · parent 796ee3f · Browse files · 2 files+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:docs/templates.rst+2 added-2 removed
330 unmodified lines
331advantage of it, see :ref:`null-master-fallback`.332333The filename of the template depends on the template loader. For example the334:class:`FileSystemLoader` allows you to access other templates by giving the335filename. You can access templates in subdirectories with an slash::335filename. You can access templates in subdirectories with a slash::336337 {% extends "layout/default.html" %}338339But this behavior can depend on the application embedding Jinja. Note that
478 unmodified lines
818Jinja2 supports putting often used code into macros. These macros can go into819different templates and get imported from there. This works similar to the820import statements in Python. It's important to know that imports are cached821and imported templates don't have access to the current template variables,822just the globals by defualt. For more details about context behavior of822just the globals by default. For more details about context behavior of823imports and includes see :ref:`import-visibility`.824825There are two ways to import templates. You can import the complete template826into a variable or request specific macros / exported variables from it.
554 unmodified lines
modified:jinja2/filters.py+1 added-1 removed
581 unmodified lines
582 """583 A filter that batches items. It works pretty much like `slice`584 just the other way round. It returns a list of lists with the585 given number of items. If you provide a second parameter this586 is used to fill missing items. See this example:586 is used to fill up missing items. See this example:587588 .. sourcecode:: html+jinja589590 <table>
238 unmodified lines