View source: R/utils-varnish.R
set_globals | R Documentation |
{varnish}
template.This will enforce four global lists:
set_globals(path)
path |
the path to the lesson |
.resources
, which is equivalent to the output of get_resource_list()
this_metadata
, which contains the metadata common for the lesson
learner_globals
the navigation items for the learners
instructor_globals
the namvigation items for the instructors
The things that are added:
sidebar
This is generated from create_sidebar()
and is the same in the
learner and instructor globals with the exception of the first element.
more
This is the "More" dropdown menu, which is created via create_resources_dropdown()
.
resources
The same as "More", but positioned on the mobile sidebar.
{sandpaper,varnish,pegboard}_version
package versions of each package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.