EnvConfig
🛈 DocStrings¶
A class representing the config of an Environment.
Does not include loaders, filters, tests, globals.
Source code in src/jinjarope/envconfig.py
block_end_string
class-attribute
instance-attribute
¶
The string marking the end of a block. Defaults to '%}'.
block_start_string
class-attribute
instance-attribute
¶
The string marking the beginning of a block. Defaults to '{%'.
comment_end_string
class-attribute
instance-attribute
¶
The string marking the end of a comment. Defaults to '#}'.
comment_start_string
class-attribute
instance-attribute
¶
The string marking the beginning of a comment. Defaults to '{#'.
extensions
class-attribute
instance-attribute
¶
A list of jinja2 extentions.
keep_trailing_newline
class-attribute
instance-attribute
¶
Preserve the trailing newline when rendering templates. The default is False.
The default causes a single newline, if present, to be stripped from the end of the template.
line_comment_prefix
class-attribute
instance-attribute
¶
If given and a string, this will be used as prefix for line based comments.
line_statement_prefix
class-attribute
instance-attribute
¶
If given and a string, this will be used as prefix for line based statements.
lstrip_blocks
class-attribute
instance-attribute
¶
Strip leading spaces / tabs from start of a line to a block. Defaults to False.
newline_sequence
class-attribute
instance-attribute
¶
The sequence that starts a newline. ('\r', '\n' or '\r\n'. Defaults to '\n'
trim_blocks
class-attribute
instance-attribute
¶
Remove first newline after a block (not variable tag!). Defaults to False.
undefined
class-attribute
instance-attribute
¶
undefined: type[Undefined] = jinja2.StrictUndefined
The undefined object determining the "Undefined" behavior.
variable_end_string
class-attribute
instance-attribute
¶
The string marking the end of a print statement. Defaults to '}}'.
variable_start_string
class-attribute
instance-attribute
¶
The string marking the end of a print statement. Defaults to '}}'.