Access Sightly Variable In HandleBars

vdhim23

11-06-2017

Hi,

I have the html file in which I am getting the variable as using below statement:

<sly data-sly-test.myVal=${some exp} />

And I want to use myVal in the hbs template under same file like below.

{{#each Obj}}

     {{#if myVal == 'bla'}}

          <img/>

     {{}}

{{/each}}

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)