How to pass value from .html file to .hbs file? | Community
Skip to main content
New Participant
March 30, 2016
Solved

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

  • March 30, 2016
  • 2 replies
  • 2172 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

2 replies

New Participant
April 1, 2016

Thanks Scott.

smacdonald2008
smacdonald2008Accepted solution
New Participant
March 30, 2016

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.