Create an object to configure the templating engine behavior (e.g. customize the syntax). The default values have been chosen to match the Jinja defaults.
jinjar_config(
loader = NULL,
block_open = "{%",
block_close = "%}",
variable_open = "{{",
variable_close = "}}",
comment_open = "{#",
comment_close = "#}",
line_statement = NULL,
trim_blocks = FALSE,
lstrip_blocks = FALSE,
ignore_missing_files = FALSE
)default_config()
A "jinjar_config"
object.
How the engine discovers templates. Choices:
NULL
(default), disables search for templates.
Path to template directory.
A loader
object.
The opening and closing delimiters
for control blocks. Default: "{%"
and "%}"
.
The opening and closing delimiters
for print statements. Default: "{{"
and "}}"
.
The opening and closing delimiters
for comments. Default: "{#"
and "#}"
.
The prefix for an inline statement. If NULL
(the
default), inline statements are disabled.
Remove first newline after a block. Default: FALSE
.
Remove inline whitespace before a block. Default: FALSE
.
Ignore include
or extends
statements when
the auxiliary template cannot be found. If FALSE
(default), then an error
is raised.