-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dynamic Template Support #260
Comments
I can take a crack at this one! |
Hi,
|
By the way, there seems to be a bug/feature where specifying html or text content stops the application of any handlebars |
@birjup I am planning to do something like that |
@birjup I actually had to do something like the following. You can't use a string value in the map because the JSON can be of arbitrary structure so that you can use the iteration and deep object features of handlebars. I am writing this so you pass a JSON string into the helper method
|
Great, makes sense. Thanks for the update |
@devchas take a look! |
Awesome thanks @nickhudkins - I had already done most of the work and had some more comprehensive examples that are aligned with the general dynamic template docs so I just submitted a separate PR #263 but it was helpful to see we approached this the same way |
Works for me! Needed to get a feature out the door at work so I figured I’d push up what I did! |
Issue Summary
On 7/24/2018, our team publicly launched dynamic content for transactional templates. It is now available for all customers sending over v3 of our Mail Send API. Iterate over lists, handle conditionals and more, thanks to native support for a subset of Handlebars syntax!
More information can be found in our blog post announcement.
You can currently use this feature by manually creating the request body as shown here.
Now, we need to create helper code and examples for this SDK.
Acceptance Criteria
Documentation
The text was updated successfully, but these errors were encountered: