template_settings | R Documentation |
Configure template options that are shared across the sessions
template_settings
template_settings_set(...)
template_settings_get(name, default = NULL)
template_root()
... |
key-value pair to set options |
name |
character, key of the value |
default |
default value if the key is missing |
An object of class list
of length 3.
The settings is designed to store static key-value pairs that
are shared across the sessions. The most important key is
"root_path"
, which should be a path pointing to the template
folder.
template_settings_get
returns the values represented by the
corresponding keys, or the default value if key is missing.
# Get current website root path
template_root()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.