Nova · Layouts
Missing paths
A path with nothing at it is not an error. On its own it draws nothing, and in a template it leaves its place empty.
{
id: 'missing-paths',
data: { member: { name: 'Ada' } },
layout: {
component: 'Stack',
children: [
{ component: 'Text', children: '$.member.name' },
{ component: 'Text', children: '$.member.nickname' },
{
component: 'Text',
children: 'Known as {{$.member.nickname}}.',
},
],
},
}Ada
Known as .
Nothing. It is only drawn.
{ member: { name: 'Ada' } }Ada Known as .
Left: the action as the package ships it. Right: the same action running in this page, rendered with this site’s components. Below: the action run as the example specifies, on the installed package.