How to bind with handlebars the value of the object inside the array in Sendgrid❓
Options
![Fredk](https://us.v-cdn.net/6037124/uploads/userpics/YXEICG61ECYZ/nGH3D2K4EH56L.jpg)
Fredk
Member ✭
Hello guys,
I'm less than a week old on Xano and managed to populate a dynamic template with sendgrid, except the "value" of "content" array. We're supposed to use handlebars but neither {{value}} nor {{content.value}} in the template work. Any tip appreciated!
Thanks for your attention.
Tagged:
Best Answer
-
You know what guys, don't bother with such structure:
"content": [ { "type": "text/html", "value": "<p>Hello from Twilio SendGrid!</p><p>Sending with the email service trusted by developers and marketers for <strong>time-savings</strong>, <strong>scalability</strong>, and <strong>delivery expertise</strong>.</p><p>%open-track%</p>" } ],
A suggestion on Stackoverflow works. Use triple curly brackets
{{{value}}}
in the template and a plain and simple "value" property in the dynamic template data object, and the html formatting will be rendered nicely, like:"value": "Hello there,<br>My second line"
Although I'd still like to know how to handle the value of an object property inside in an array... If anyone knows...
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback