Page
A page resource represents a markdown file that can be used to display content in the lab.
Attributes
Attributes are the properties of a resource that can be used to configure it.
Title title
string
The title of the page. This can be overridden in the `content` block of a `lab` when referencing the page.
File file
required
string
The path to the markdown file that contains the content of the page.
Variables variables
map[string]string
A key/value map of variables that are passed to the markdown. Handlebars templates are used to substitute the variables. The placeholders will be replaced with the variable values at runtime.
The activities that are embedded in the content of the page. This maps the chosen ID to the activity reference. This ID will be replaced with the interpolated activity reference at runtime.
Computed Attributes
These attributes are computed when the config is parsed and applied, and are therefor only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.
Content content
string
The content of the file at the path specified in the `file` field.
Examples
Simple
Full
Last updated