Closed davidchall closed 2 years ago
If a template will be rendered multiple times, it makes sense to parse the template once and store the intermediate object.
parse(.x, .config)
"jinjar_template"
render.jinjar_template(.x, ...)
cpp11::external_pointer
inja::Template
jinjar_config
If a template will be rendered multiple times, it makes sense to parse the template once and store the intermediate object.
parse(.x, .config)
returns an S3 object with class"jinjar_template"
.render.jinjar_template(.x, ...)
renders the template like usual.cpp11::external_pointer
to theinja::Template
object (i.e. after parsing).jinjar_config
object (needed again for rendering).