jinjar_config | R Documentation |
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()
loader |
How the engine discovers templates. Choices:
|
block_open , block_close |
The opening and closing delimiters
for control blocks. Default: |
variable_open , variable_close |
The opening and closing delimiters
for print statements. Default: |
comment_open , comment_close |
The opening and closing delimiters
for comments. Default: |
line_statement |
The prefix for an inline statement. If |
trim_blocks |
Remove first newline after a block. Default: |
lstrip_blocks |
Remove inline whitespace before a block. Default: |
ignore_missing_files |
Ignore |
A "jinjar_config"
object.
The equivalent Jinja class is Environment
, but this term has special
significance in R (see environment()
).
jinjar_config()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.