R6 method for ExTera: render specified template to string.
$render_to_string(template, ...)Examples
tera <- new_engine()
tera$add_string_templates(
"hello-world" = '<p>Hello {{ x }}. This is {{ y }}.</p>'
)
tera$render_to_string(
"hello-world",
x = "world",
y = "ExTera"
)
#> [1] "<p>Hello world. This is ExTera.</p>"