![]() The second tab, JSON, shows example data that would be used to populate the Handlebars tag. The first tab, Handlebars, shows the Handlebars tag. ![]() The code examples are shown in three tabs. The following reference provides sample code blocks for each helper, including HTML email snippets and JSON test data. This is an example template that is advertising items on sale, and it uses the following helpers: This example newsletter template uses the following helpers: This is an example template that lets you have content in multiple languages, and it uses the following helpers: This example transactional template uses the following helpers: This example receipt template uses the following helpers: The following use cases are listed with the Handlebars helpers used to build them. You can also work with these templates by uploading them using the Code Editor available in Dynamic Transactional Templates and the Marketing Campaigns Design Library. Each example links to files you can explore on GitHub. ![]() The following use case examples come from the dynamic-template section of our email templates GitHub repo. ![]() Currently, dynamic templates support the following helpers:įor a full helper reference, see the Handlebars reference on this page. Our templates and designs support most but not all of this Handlebars functionality. The Handlebars language provides many features in addition to basic variable replacement, including iterations (loops) and conditional statements. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |