Using handlebars in experience page

I’m successfully accessing a pageData.payload array using handlebars and the each helper.

But on that same page I want to show what’s in another non array variable pageData.test , and I’m having some trouble.

tried using just {{ pageData.test }} gives me nothing

Hi @Lars_Andersson

If you are within the the {{#each}} iterator, you have to use {{@root.pageData.foo}} get back to the higher scope.

@root is always available for you to use.