Skip to content
Myr

Indented environment parameters in docstring so that the sphinx HTML output looks nicer

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 5b99bed · Browse files · 2 files+52 added−46 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+52 added−46 removed

  • other:+52 added−46 removed

2 files+52 added−46 removed

modified:docs/_static/style.css+4 added
135 unmodified lines
136p, li, dd, dt, blockquote {137 color: #333;138}139140blockquote {141 margin: 10px 0 10px 20px;142}143144p {145 line-height: 20px;146 margin-bottom: 0;147 margin-top: 10px;
179 unmodified lines
modified:jinja2/environment.py+48 added-46 removed
80 unmodified lines
81 will lead to surprising effects and undefined behavior.8283 Here the possible initialization parameters:8485 `block_start_string`86 The string marking the begin of a block. Defaults to ``'{%'``.85 `block_start_string`86 The string marking the begin of a block. Defaults to ``'{%'``.8788 `block_end_string`89 The string marking the end of a block. Defaults to ``'%}'``.88 `block_end_string`89 The string marking the end of a block. Defaults to ``'%}'``.9091 `variable_start_string`92 The string marking the begin of a print statement.93 Defaults to ``'{{'``.91 `variable_start_string`92 The string marking the begin of a print statement.93 Defaults to ``'{{'``.9495 `variable_stop_string`96 The string marking the end of a print statement. Defaults to ``'}}'``.95 `variable_stop_string`96 The string marking the end of a print statement. Defaults to97 ``'}}'``.9898 `comment_start_string`99 The string marking the begin of a comment. Defaults to ``'{#'``.99 `comment_start_string`100 The string marking the begin of a comment. Defaults to ``'{#'``.101101 `comment_end_string`102 The string marking the end of a comment. Defaults to ``'#}'``.102 `comment_end_string`103 The string marking the end of a comment. Defaults to ``'#}'``.104104 `line_statement_prefix`105 If given and a string, this will be used as prefix for line based106 statements. See also :ref:`line-statements`.105 `line_statement_prefix`106 If given and a string, this will be used as prefix for line based107 statements. See also :ref:`line-statements`.108108 `trim_blocks`109 If this is set to ``True`` the first newline after a block is110 removed (block, not variable tag!). Defaults to `False`.109 `trim_blocks`110 If this is set to ``True`` the first newline after a block is111 removed (block, not variable tag!). Defaults to `False`.112112 `extensions`113 List of Jinja extensions to use. This can either be import paths114 as strings or extension classes.113 `extensions`114 List of Jinja extensions to use. This can either be import paths115 as strings or extension classes.116116 `optimized`117 should the optimizer be enabled? Default is `True`.117 `optimized`118 should the optimizer be enabled? Default is `True`.119119 `undefined`120 :class:`Undefined` or a subclass of it that is used to represent121 undefined values in the template.120 `undefined`121 :class:`Undefined` or a subclass of it that is used to represent122 undefined values in the template.123123 `finalize`124 A callable that finalizes the variable. Per default no finalizing125 is applied.124 `finalize`125 A callable that finalizes the variable. Per default no finalizing126 is applied.127127 `autoescape`128 If set to true the XML/HTML autoescaping feature is enabled.128 `autoescape`129 If set to true the XML/HTML autoescaping feature is enabled.130130 `loader`131 The template loader for this environment.131 `loader`132 The template loader for this environment.133133 `cache_size`134 The size of the cache. Per default this is ``50`` which means that if135 more than 50 templates are loaded the loader will clean out the least136 recently used template. If the cache size is set to ``0`` templates are137 recompiled all the time, if the cache size is ``-1`` the cache will not138 be cleaned.134 `cache_size`135 The size of the cache. Per default this is ``50`` which means136 that if more than 50 templates are loaded the loader will clean137 out the least recently used template. If the cache size is set to138 ``0`` templates are recompiled all the time, if the cache size is139 ``-1`` the cache will not be cleaned.140140 `auto_reload`141 Some loaders load templates from locations where the template sources142 may change (ie: file system or database). If `auto_reload` is set to143 `True` (default) every time a template is requested the loader checks144 if the source changed and if yes, it will reload the template. For145 higher performance it's possible to disable that.141 `auto_reload`142 Some loaders load templates from locations where the template143 sources may change (ie: file system or database). If144 `auto_reload` is set to `True` (default) every time a template is145 requested the loader checks if the source changed and if yes, it146 will reload the template. For higher performance it's possible to147 disable that.148 """149150 #: if this environment is sandboxed. Modifying this variable won't make151 #: the environment sandboxed though. For a real sandboxed environment
524 unmodified lines