Edit code comments for readability
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Changed a few things to make it more understandable
authored by richierichrawr · committed by richierichrawr · parent 27ffd01 · 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
Provenance
- Commit
c268e74- Tree
488978b- Author
richierichrawr <richierichrawr@users.noreply.github.com>- Committer
richierichrawr <richierichrawr@users.noreply.github.com>- Parent
27ffd01
1 file changed+7 added−7 removed
modified:jinja2/environment.py+7 added-7 removed
109 unmodified lines110 111 Here the possible initialization parameters:112 113 `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 ``'{%'``.115 116 `block_end_string`117 The string marking the end of a block. Defaults to ``'%}'``.118 119 `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 ``'{{'``.122 123 `variable_end_string`124 The string marking the end of a print statement. Defaults to125 ``'}}'``.126 127 `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 ``'{#'``.129 130 `comment_end_string`131 The string marking the end of a comment. Defaults to ``'#}'``.132 46 unmodified lines179 `None` implicitly into an empty string here.180 181 `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 lines329 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 lines602 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'``.609 610 `extensions` and `filter_func` are passed to :meth:`list_templates`.611 Each template returned will be compiled to the target folder or580 unmodified lines