Skip to content
Myr

Merge pull request #319 from richierichrawr/master

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

Edit code comments for readability

authored by Armin Ronacher · committed by Armin Ronacher · parents bd0f6c0, c268e74 · Browse files · 1 file+7 added−7 removed
This commit

State

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

Diff stats

1 file+7 added−7 removed

  • other:+7 added−7 removed

1 file+7 added−7 removed

modified:jinja2/environment.py+7 added-7 removed
109 unmodified lines
110111 Here the possible initialization parameters:112113 `block_start_string`114 The string marking the begin of a block. Defaults to ``'{%'``.114 The string marking the beginning of a block. Defaults to ``'{%'``.115116 `block_end_string`117 The string marking the end of a block. Defaults to ``'%}'``.118119 `variable_start_string`120 The string marking the begin of a print statement.120 The string marking the beginning of a print statement.121 Defaults to ``'{{'``.122123 `variable_end_string`124 The string marking the end of a print statement. Defaults to125 ``'}}'``.126127 `comment_start_string`128 The string marking the begin of a comment. Defaults to ``'{#'``.128 The string marking the beginning of a comment. Defaults to ``'{#'``.129130 `comment_end_string`131 The string marking the end of a comment. Defaults to ``'#}'``.132
46 unmodified lines
179 `None` implicitly into an empty string here.180181 `autoescape`182 If set to true the XML/HTML autoescaping feature is enabled by183 default. For more details about auto escaping see183 default. For more details about autoescaping see184 :class:`~jinja2.utils.Markup`. As of Jinja 2.4 this can also185 be a callable that is passed the template name and has to186 return `True` or `False` depending on autoescape should be187 enabled by default.
141 unmodified lines
329 undefined=missing, finalize=missing, autoescape=missing,330 loader=missing, cache_size=missing, auto_reload=missing,331 bytecode_cache=missing):332 """Create a new overlay environment that shares all the data with the333 current environment except of cache and the overridden attributes.333 current environment except for cache and the overridden attributes.334 Extensions cannot be removed for an overlayed environment. An overlayed335 environment automatically gets all the extensions of the environment it336 is linked to plus optional extra extensions.337
264 unmodified lines
602 zip='deflated', log_function=None,603 ignore_errors=True, py_compile=False):604 """Finds all the templates the loader can find, compiles them605 and stores them in `target`. If `zip` is `None`, instead of in a606 zipfile, the templates will be will be stored in a directory.607 By default a deflate zip algorithm is used, to switch to606 zipfile, the templates will be stored in a directory.607 By default a deflate zip algorithm is used. To switch to608 the stored algorithm, `zip` can be set to ``'stored'``.609610 `extensions` and `filter_func` are passed to :meth:`list_templates`.611 Each template returned will be compiled to the target folder or
592 unmodified lines