Expand my Community achievements bar.

SOLVED

How to pass value from .html file to .hbs file?

Avatar

Level 2

How to pass value from .html file to .hbs file? I tried using request.setAttribute() request.getAttribute() in a .js file and accomplish this. But got struck here below.

The code below is what I will use to make it work from a .html file.  

<dl data-sly-use.attrs="${'producers-place/components/utils/getAttributes.js' @ names = ['ratingPath']}"  data-sly-list="${attrs}">

<div class="scf scf-ratings" data-component-id="${attrs[item]}" data-scf-component="social/tally/components/hbs/rating">

How shall I write the above same in .hbs file? Could you help me figure that out or point me to a resource where I can learn more about it?

1 Accepted Solution

Avatar

Correct answer by
Level 10

There is no community content on how to pass  parameter values from a Sightly file to a HandleBar file. The closest article is passing to Java: 

http://blogs.adobe.com/experiencedelivers/experience-management/sightly-intro-part-4/

I have asked some of the Eng team to look at this. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

There is no community content on how to pass  parameter values from a Sightly file to a HandleBar file. The closest article is passing to Java: 

http://blogs.adobe.com/experiencedelivers/experience-management/sightly-intro-part-4/

I have asked some of the Eng team to look at this.