loader | R Documentation |
Loaders are responsible for exposing templates to the templating engine.
path_loader()
loads templates from a directory in the file system.
package_loader()
loads templates from a directory in an R package.
list_loader()
loads templates from a named list.
path_loader(...)
package_loader(package, ...)
list_loader(x)
... |
Strings specifying path components. |
package |
Name of the package in which to search. |
x |
Named list mapping template names to template sources. |
A "jinjar_loader"
object.
The loader is an argument to jinjar_config()
.
path_loader(getwd())
package_loader("base", "demo")
list_loader(list(
header = "Title: {{ title }}",
content = "Hello {{ person }}!"
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.