Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mitsuhiko/jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jul 7, 2011
2 parents ff115c4 + b523c93 commit 8a05e93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api.rst
Expand Up @@ -596,7 +596,7 @@ paragraphs and marks the return value as safe HTML string if autoescaping is
enabled::

import re
from jinja2 import environmentfilter, Markup, escape
from jinja2 import evalcontextfilter, Markup, escape

_paragraph_re = re.compile(r'(?:\r\n|\r|\n){2,}')

Expand Down
6 changes: 3 additions & 3 deletions docs/templates.rst
Expand Up @@ -44,7 +44,7 @@ the details later in that document::
This covers the default settings. The application developer might have
changed the syntax from ``{% foo %}`` to ``<% foo %>`` or something similar.

There are two kinds of delimiers. ``{% ... %}`` and ``{{ ... }}``. The first
There are two kinds of delimiters. ``{% ... %}`` and ``{{ ... }}``. The first
one is used to execute statements such as for-loops or assign values, the
latter prints the result of the expression to the template.

Expand Down Expand Up @@ -165,7 +165,7 @@ that block::
{% for item in seq -%}
{{ item }}
{%- endfor %}

This will yield all elements without whitespace between them. If `seq` was
a list of numbers from ``1`` to ``9`` the output would be ``123456789``.

Expand Down Expand Up @@ -1174,7 +1174,7 @@ The following functions are available in the global scope by default:
.. attribute:: current

Returns the current item.

**new in Jinja 2.1**

.. class:: joiner(sep=', ')
Expand Down
3 changes: 1 addition & 2 deletions jinja2/loaders.py
Expand Up @@ -251,8 +251,7 @@ def _walk(path):
for filename in self.provider.resource_listdir(path):
fullname = path + '/' + filename
if self.provider.resource_isdir(fullname):
for item in _walk(fullname):
results.append(item)
_walk(fullname)
else:
results.append(fullname[offset:].lstrip('/'))
_walk(path)
Expand Down

0 comments on commit 8a05e93

Please sign in to comment.