{"id":40789,"date":"2024-09-13T13:11:49","date_gmt":"2024-09-13T07:41:49","guid":{"rendered":"https:\/\/email.uplers.com\/blog\/?p=40789"},"modified":"2024-09-13T14:36:38","modified_gmt":"2024-09-13T09:06:38","slug":"how-to-use-handlebars-in-iterable-email-templates","status":"publish","type":"post","link":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/","title":{"rendered":"Handlebars in Iterable \u2013 A Comprehensive Guide"},"content":{"rendered":"\n<p>In marketing automation, personalization plays a vital role. It\u2019s not for nothing that segmented email campaigns increase revenue <a href=\"https:\/\/blog.hubspot.com\/marketing\/email-marketing-stats\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">by a colossal 760%<\/a>!&nbsp;<\/p>\n\n\n\n<p>Marketers understand the importance of personalization, but wanting to personalize and being able to do it effectively are two different things. The right approach varies from one email service provider to another. In this blog post, we\u2019ll be focusing on Iterable, a prominent <a href=\"https:\/\/email.uplers.com\/email-marketing-automation-services\/\" target=\"_blank\" rel=\"noreferrer noopener\">marketing automation platform<\/a>.<\/p>\n\n\n\n<p>Speaking of personalization, Iterable utilizes Handlebars, a robust templating language, to craft dynamic and personalized email content. By incorporating variables and logic directly into your email templates, Handlebars empowers the creation of tailored content for each recipient, drawing from their individual data.\u00a0<\/p>\n\n\n\n<p><br \/>We have extensive expertise in Iterable, along with <a href=\"https:\/\/email.uplers.com\/email-service-provider-esp-integration\/\" target=\"_blank\" rel=\"noreferrer noopener\">50 other ESPs<\/a>, and have designed hundreds of <a href=\"https:\/\/email.uplers.com\/iterable-email-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">email templates for Iterable<\/a>. In this comprehensive guide, you\u2019ll learn how to use Handlebars in Iterable. Let\u2019s roll!<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><a href=\"#handlebars\">What Is Handlebars?<\/a><\/strong><\/li><li><strong><a href=\"#handlebars-work\">How Do Handlebars Templates Work?<\/a><\/strong><\/li><li><strong><a href=\"#merge-parameters\">Merge Parameters in Iterable<\/a><\/strong><\/li><li><strong><a href=\"#handlebars-in-html\">Using Handlebars in HTML Source<\/a><\/strong><\/li><li><strong><a href=\"#key-features\">Key Features of Handlebars in Iterable<\/a><\/strong><\/li><li><strong><a href=\"#additional-features\">Additional Features<\/a><\/strong><\/li><li><strong><a href=\"#handlebars-helpers\">Handlebars Helpers &amp; Block Helpers<\/a><\/strong><\/li><li><strong><a href=\"#strings\">Working with Strings<\/a><\/strong><\/li><li><strong><a href=\"#working-numbers\">Working with Numbers<\/a><\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"handlebars\"><strong>What Is Handlebars?<\/strong><\/h2>\n\n\n\n<p>Handlebars is a simple templating language that uses a template and an input object to generate HTML or other text formats. Handlebars templates look like regular text with embedded Handlebars expressions.<\/p>\n\n\n\n<p>Using Handlebar templates makes your emails more relevant to each recipient. Personalization can lead to higher engagement, better customer experience, and improved conversion rates.&nbsp;<\/p>\n\n\n\n<p>Handlebar templates let you personalize your emails in a way that feels natural and relevant to the recipient. This can include addressing the user by their first name, showcasing products they&#8217;ve shown interest in, or sending tailored offers based on their location or past behavior. Also, you can <a href=\"https:\/\/email.uplers.com\/blog\/12-winning-strategies-to-boost-your-click-through-rates\/\" target=\"_blank\" rel=\"noreferrer noopener\">boost your engagement rates<\/a> and make your email marketing campaigns more effective.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"handlebars-work\"><strong>How Do Handlebars Templates Work?<\/strong><\/h2>\n\n\n\n<p>Handlebar templates use a special syntax to insert dynamic content. This syntax is made up of expressions enclosed in double curly braces <strong>{{ }}<\/strong>. These placeholders pull in data from your user profiles or event data to display personalized content.<\/p>\n\n\n\n<p>To insert a user\u2019s first name, you can use <strong>{{firstName}}<\/strong>. And for the last name you can use the <strong>{{lastName}}<\/strong> tag.<\/p>\n\n\n\n<p>For instance, a template like <strong>&lt;p&gt;{{firstName}} {{lastName}}&lt;\/p&gt;<\/strong> when provided with the input object looks something like this:<br \/><\/p>\n\n\n\n<p><strong>{ firstname: &#8220;Yehuda&#8221;, lastname: &#8220;Katz&#8221; }<\/strong><\/p>\n\n\n\n<p>Expressions are compiled and produce this output:&nbsp; <strong>&lt;p&gt;Yehuda Katz&lt;\/p&gt;<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-37746 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/email-marketing-campaign-management-services\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"240\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/analyses_email-campaign.jpg\" class=\"attachment-full size-full\" alt=\"analyses_email-campaign\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/analyses_email-campaign.jpg 1000w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/analyses_email-campaign-300x72.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/analyses_email-campaign-768x184.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/analyses_email-campaign-624x150.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/analyses_email-campaign-600x144.jpg 600w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"merge-parameters\"><strong>Merge Parameters in Iterable<\/strong><\/h2>\n\n\n\n<p>Wrapping the name of a user profile or event field in double curly braces creates a merge parameter. When using merge parameters, data from the relevant user profile or event is merged at send time into the template or URL being modified, customizing and <a href=\"https:\/\/email.uplers.com\/blog\/personalize-emails-beyond-first-name\/\" target=\"_blank\" rel=\"noreferrer noopener\">personalizing<\/a> it as necessary.<\/p>\n\n\n\n<p>Below is a list of merge parameters in Iterable:<br \/><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>View in Browser URL: <strong>{{viewInBrowserUrl}}<\/strong><\/li><li>Unsubscribe URL: <strong>{{unsubscribeUr<\/strong>l}}<\/li><li>Hosted Unsubscribe URL: <strong>{{hostedUnsubscribeUrl}}<\/strong><\/li><li>Unsubscribe Message Type URL: <strong>{{unsubscribeMessageTypeUrl}}<\/strong><\/li><li>Campaign Id: <strong>{{campaignId}}<\/strong><\/li><li>Recipient Email: <strong>{{email}}<\/strong><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"handlebars-in-html\"><strong>Using Handlebars in HTML Source<\/strong><\/h2>\n\n\n\n<p>In an Iterable message template, you can add Handlebars expressions directly in the WYSIWYG editor or in its HTML source. When editing the HTML source, it is generally a good idea to comment out any Handlebars expressions that do not output a value.<\/p>\n\n\n\n<p>In rare scenarios, the WYSIWYG editor can get confused by the presence of Handlebars expressions in the HTML source, which can lead to errors. Since the WYSIWYG editor ignores comments in the HTML source, commenting out Handlebars expressions can resolve this issue. Consider the following example.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image3-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"177\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image3-4.png\" alt=\"\" class=\"wp-image-40790\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image3-4.png 963w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image3-4-300x55.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image3-4-768x141.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image3-4-624x115.png 624w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image12-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"174\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image12-2.png\" alt=\"\" class=\"wp-image-40791\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image12-2.png 969w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image12-2-300x54.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image12-2-768x138.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image12-2-624x112.png 624w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"key-features\"><strong>Key Features of Handlebars in Iterable<\/strong><\/h2>\n\n\n\n<p>Let\u2019s explore the key features of Handlebars in Iterable.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Variable Insertion<\/strong><\/li><\/ol>\n\n\n\n<p>You can use placeholders to insert dynamic data, such as the recipient&#8217;s name, email, or any other attribute from your contact database.&nbsp;<\/p>\n\n\n\n<p>For example, <strong>{{firstName}}<\/strong> would be replaced with the recipient&#8217;s first name.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li><strong>Conditionals<\/strong><\/li><\/ol>\n\n\n\n<p>Handlebars allow for conditional logic within your templates. This enables you to display different content based on specific conditions. Check out this example.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image1-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"224\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image1-2.png\" alt=\"\" class=\"wp-image-40792\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image1-2.png 766w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image1-2-300x88.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image1-2-624x182.png 624w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/a><\/figure>\n\n\n\n<p>3. <strong>Loops<\/strong><\/p>\n\n\n\n<p>You can iterate over arrays of data to create repeated sections in your email. For example, if you have an array of recent purchases, you can list them dynamically.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image14-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"162\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image14-2.png\" alt=\"\" class=\"wp-image-40793\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image14-2.png 763w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image14-2-300x64.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image14-2-624x132.png 624w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/a><\/figure>\n\n\n\n<p>4. <strong>Helpers<\/strong><\/p>\n\n\n\n<p>A Handlebars helper is a function that takes zero or more parameters and returns a value. Consider the following example:<\/p>\n\n\n\n<p><strong>{{capitalizeFirst firstName}}<\/strong><br \/><\/p>\n\n\n\n<p>This helper renders the<strong> firstName parameter<\/strong> with its first letter capitalized. The value stored in the <strong>firstName<\/strong> parameter is not changed.<\/p>\n\n\n\n<p>To nest sequential calls to Handlebars helper methods, use parentheses. For example: <strong>{{capitalizeFirst (lower firstName)}}<\/strong><\/p>\n\n\n\n<p>This example lowercases every letter in firstName, and then capitalizes its first letter, rendering the output in the message template. Again, the value stored in <strong>firstName<\/strong> is not modified.<\/p>\n\n\n\n<p>5. <strong>Partials<\/strong><\/p>\n\n\n\n<p>You can define <a href=\"https:\/\/email.uplers.com\/blog\/iterable-email-template-editor\/\" target=\"_blank\" rel=\"noreferrer noopener\">reusable template snippets<\/a> called partials. This is useful for components that appear across multiple emails, like headers or footers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image21-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"161\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image21-2.png\" alt=\"\" class=\"wp-image-40794\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image21-2.png 766w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image21-2-300x63.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image21-2-624x131.png 624w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/a><\/figure>\n\n\n\n<p><br \/>Now, here\u2019s what a basic Handlebars template in Iterable would look like.<br \/><\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"523\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2.png\" alt=\"\" class=\"wp-image-40795\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2.png 862w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2-300x182.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2-768x466.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2-231x140.png 231w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image9-2-624x379.png 624w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/a><\/figure>\n\n\n\n<p>In the above example:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>{{firstName}}<\/strong> inserts the recipient&#8217;s first name.<\/li><li>The <strong>if<\/strong> block displays different messages based on whether the user is premium.<\/li><li>The <strong>each<\/strong> block lists the recipient&#8217;s recent purchases.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"additional-features\"><strong>Additional Features<\/strong><\/h2>\n\n\n\n<p>Let\u2019s take a brief look at some more features of Handlebars in Iterable:<\/p>\n\n\n\n<p><strong>Basic if\/else expressions<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image10-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"224\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image10-1.png\" alt=\"\" class=\"wp-image-40796\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image10-1.png 724w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image10-1-300x93.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image10-1-624x193.png 624w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/a><\/figure>\n\n\n\n<p><strong>&#8216;Unless&#8217; expressions<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image4-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"165\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image4-3.png\" alt=\"\" class=\"wp-image-40797\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image4-3.png 725w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image4-3-300x68.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image4-3-624x142.png 624w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Equality<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image18-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"158\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image18-1.png\" alt=\"\" class=\"wp-image-40799\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image18-1.png 721w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image18-1-300x66.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image18-1-624x137.png 624w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/a><\/figure>\n\n\n\n<p><br \/><strong>Greater Than<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image17-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"164\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image17-1.png\" alt=\"\" class=\"wp-image-40800\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image17-1.png 722w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image17-1-300x68.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image17-1-624x142.png 624w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Greater Than Or Equal To<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image15-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"156\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image15-2.png\" alt=\"\" class=\"wp-image-40801\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image15-2.png 724w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image15-2-300x65.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image15-2-624x134.png 624w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Less Than<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"157\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-5.png\" alt=\"\" class=\"wp-image-40802\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-5.png 715w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-5-300x66.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-5-624x137.png 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Less Than Or Equal To<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"157\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-6.png\" alt=\"\" class=\"wp-image-40803\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-6.png 715w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-6-300x66.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image5-6-624x137.png 624w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/a><\/figure>\n\n\n\n<p><br \/><strong>Modulus (The Remainder of a Division Operation)<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image6-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"162\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image6-3.png\" alt=\"\" class=\"wp-image-40804\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image6-3.png 729w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image6-3-300x67.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image6-3-624x139.png 624w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Loops and List Operations<\/strong><\/h4>\n\n\n\n<p>A loop will go through each item in a list:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image8-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"163\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image8-3.png\" alt=\"\" class=\"wp-image-40805\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image8-3.png 725w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image8-3-300x67.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image8-3-624x140.png 624w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Minimum Item in List<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image2-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"162\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image2-4.png\" alt=\"\" class=\"wp-image-40806\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image2-4.png 725w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image2-4-300x67.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image2-4-624x139.png 624w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Maximum Item in List<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image11-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"162\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image11-2.png\" alt=\"\" class=\"wp-image-40807\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image11-2.png 723w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image11-2-300x67.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image11-2-624x140.png 624w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>String Functions<\/strong><\/h4>\n\n\n\n<p>Encode a field\/value so it can be validly included in a URL:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image20-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"162\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image20-2.png\" alt=\"\" class=\"wp-image-40808\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image20-2.png 727w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image20-2-300x67.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image20-2-624x139.png 624w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/a><\/figure>\n\n\n\n<p><br \/><strong>Capitalize the First Letter of a Field<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image13-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"102\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image13-2.png\" alt=\"\" class=\"wp-image-40809\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image13-2.png 720w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image13-2-300x43.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image13-2-624x88.png 624w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"handlebars-helpers\"><strong>Handlebars Helpers &amp; Block Helpers&nbsp;<\/strong><\/h2>\n\n\n\n<p>Handlebars users help to manipulate, format, and loop through user profile and event data, to perform calculations, and to apply boolean and conditional logic. Helpers come in two varieties: helpers and block helpers.<\/p>\n\n\n\n<p>Iterable message templates use Handlebars helpers and block helpers to display user and event profile data in a way that is most suitable to each recipient.<\/p>\n\n\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-37742 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/email-marketing-specialist\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"240\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/automation-expert.jpg\" class=\"attachment-full size-full\" alt=\"automation-expert\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/automation-expert.jpg 1000w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/automation-expert-300x72.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/automation-expert-768x184.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/automation-expert-624x150.jpg 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/10\/automation-expert-600x144.jpg 600w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"strings\"><strong>Working with Strings&nbsp;<\/strong><\/h2>\n\n\n\n<p>Handlebars supports a variety of string manipulations to <a href=\"https:\/\/email.uplers.com\/custom-email-templates-design-coding\/\" target=\"_blank\" rel=\"noreferrer noopener\">customize and personalize emails<\/a>. When working with strings in Iterable Handlebars, you can perform actions such as joining, truncating, changing cases, or replacing parts of the string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"working-numbers\"><strong>Working with Numbers<\/strong><\/h2>\n\n\n\n<p>In this section, we\u2019ll explore how to work with numbers in Handlebars.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Use #ifEq to test if one number is equal to another number and to display a block of content if so. #ifEq can compare numbers represented as strings, longs, and doubles. Arguments need not be of the same type. In the below example, the else block is conditional.&nbsp;<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image16-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"213\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image16-1.png\" alt=\"\" class=\"wp-image-40810\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image16-1.png 999w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image16-1-300x64.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image16-1-768x164.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image16-1-624x133.png 624w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/a><\/figure>\n\n\n\n<p>2. Use eq to test two numbers for equality as part of a boolean expression. The example below compares two sets of numbers. If either set is equal, it displays Found a match. Otherwise, it displays No matches.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image19-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"218\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image19-1.png\" alt=\"\" class=\"wp-image-40811\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image19-1.png 1008w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image19-1-300x65.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image19-1-768x166.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image19-1-624x135.png 624w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/a><\/figure>\n\n\n\n<p>3. Format a JSON date string as shown in the following example.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"104\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-3.png\" alt=\"\" class=\"wp-image-40812\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-3.png 723w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-3-300x43.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-3-624x90.png 624w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/a><\/figure>\n\n\n\n<p>4. Replace Newlines (\\r\\n) with HTML Line Breaks (&lt;br \/&gt;) as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full text-center\"><a href=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"104\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-4.png\" alt=\"\" class=\"wp-image-40813\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-4.png 723w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-4-300x43.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/image7-4-624x90.png 624w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Note:<\/strong> Before sending your email, use Iterable\u2019s testing tools to see how your email looks with real user data. Ensure all dynamic content is displayed correctly.&nbsp;<\/p>\n\n\n\n<p>Once your template is ready and tested, you can use Iterable\u2019s platform to send out your emails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Utilize Handlebars in Iterable with Email Uplers!&nbsp;<\/strong><\/h2>\n\n\n\n<p>By using Handlebars in Iterable, you can create<a href=\"https:\/\/email.uplers.com\/blog\/personalize-emails-beyond-first-name\/\" target=\"_blank\" rel=\"noreferrer noopener\"> highly personalized and engaging email content<\/a> that can significantly improve your marketing campaigns. The flexibility and power of Handlebars, combined with Iterable&#8217;s robust platform, make it an invaluable tool for marketers looking to create dynamic, customized communications.&nbsp;<\/p>\n\n\n\n<p>Whether you&#8217;re inserting variables, adding conditional logic, or looping through data, Handlebars provides the functionality needed to tailor your messages to each recipient, enhancing their experience and increasing your campaign&#8217;s effectiveness. Need help with email marketing in Iterable? <a href=\"https:\/\/email.uplers.com\/iterable-email-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">Get in touch<\/a> with our Iterable experts today!&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow our experts and discover how to use and master Handlebars, a templating language, to create personalized email campaigns in Iterable.<\/p>\n","protected":false},"author":86,"featured_media":40818,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[1392,1394,1396,1393],"class_list":["post-40789","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-delivery","tag-handlebars-in-iterable","tag-how-do-handlebars-temp","tag-key-features-of-handlebars-in-iterable","tag-what-is-handlebars"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Complete Guide to Creating Dynamic Emails with Handlebars in Iterable<\/title>\n<meta name=\"description\" content=\"Learn how to implement Handlebars in Iterable to create personalized, dynamic email templates. Optimize your campaigns with conditional logic, loops, and variable insertion.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Complete Guide to Creating Dynamic Emails with Handlebars in Iterable\" \/>\n<meta property=\"og:description\" content=\"Learn how to implement Handlebars in Iterable to create personalized, dynamic email templates. Optimize your campaigns with conditional logic, loops, and variable insertion.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/\" \/>\n<meta property=\"og:site_name\" content=\"Email Uplers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/email.uplers\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-13T07:41:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-13T09:06:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars-540x282.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"282\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dhrupalsinh Barad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:site\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dhrupalsinh Barad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/\",\"name\":\"Complete Guide to Creating Dynamic Emails with Handlebars in Iterable\",\"isPartOf\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars.jpg\",\"author\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/ca2c04d9c00e6e256697e5a14c429f39\"},\"description\":\"Learn how to implement Handlebars in Iterable to create personalized, dynamic email templates. Optimize your campaigns with conditional logic, loops, and variable insertion.\",\"breadcrumb\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#primaryimage\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars.jpg\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars.jpg\",\"width\":1170,\"height\":470,\"caption\":\"Handlebars in Iterable\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/email.uplers.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Handlebars in Iterable \u2013 A Comprehensive Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\",\"url\":\"https:\/\/email.uplers.com\/blog\/\",\"name\":\"Email Uplers\",\"description\":\"Email Marketing Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/email.uplers.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/ca2c04d9c00e6e256697e5a14c429f39\",\"name\":\"Dhrupalsinh Barad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/04\/image11-1-96x96.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/04\/image11-1-96x96.png\",\"caption\":\"Dhrupalsinh Barad\"},\"description\":\"As a seasoned project manager at Mavlers, I bring over nine years of expertise in Project Management, Email Marketing and automation, and Client Servicing. My enthusiasm lies in exploring emerging technologies, which I believe hold immense potential to transform our world positively. When I'm not busy solving problems for our clients, managing teams, or managing projects, you can find me lost in a good book or grooving to dance tracks. Helping others thrive and adding value wherever I can is what keeps me going.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/dhrupalsinhbarad\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Complete Guide to Creating Dynamic Emails with Handlebars in Iterable","description":"Learn how to implement Handlebars in Iterable to create personalized, dynamic email templates. Optimize your campaigns with conditional logic, loops, and variable insertion.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/","og_locale":"en_US","og_type":"article","og_title":"Complete Guide to Creating Dynamic Emails with Handlebars in Iterable","og_description":"Learn how to implement Handlebars in Iterable to create personalized, dynamic email templates. Optimize your campaigns with conditional logic, loops, and variable insertion.","og_url":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/","og_site_name":"Email Uplers","article_publisher":"https:\/\/www.facebook.com\/email.uplers\/","article_published_time":"2024-09-13T07:41:49+00:00","article_modified_time":"2024-09-13T09:06:38+00:00","og_image":[{"width":540,"height":282,"url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars-540x282.jpg","type":"image\/jpeg"}],"author":"Dhrupalsinh Barad","twitter_card":"summary_large_image","twitter_creator":"@email_uplers","twitter_site":"@email_uplers","twitter_misc":{"Written by":"Dhrupalsinh Barad","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/","url":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/","name":"Complete Guide to Creating Dynamic Emails with Handlebars in Iterable","isPartOf":{"@id":"https:\/\/email.uplers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#primaryimage"},"image":{"@id":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#primaryimage"},"thumbnailUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars.jpg","author":{"@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/ca2c04d9c00e6e256697e5a14c429f39"},"description":"Learn how to implement Handlebars in Iterable to create personalized, dynamic email templates. Optimize your campaigns with conditional logic, loops, and variable insertion.","breadcrumb":{"@id":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#primaryimage","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars.jpg","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/09\/Iterable-Handlebars.jpg","width":1170,"height":470,"caption":"Handlebars in Iterable"},{"@type":"BreadcrumbList","@id":"https:\/\/email.uplers.com\/blog\/how-to-use-handlebars-in-iterable-email-templates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/email.uplers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Handlebars in Iterable \u2013 A Comprehensive Guide"}]},{"@type":"WebSite","@id":"https:\/\/email.uplers.com\/blog\/#website","url":"https:\/\/email.uplers.com\/blog\/","name":"Email Uplers","description":"Email Marketing Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/email.uplers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/ca2c04d9c00e6e256697e5a14c429f39","name":"Dhrupalsinh Barad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/04\/image11-1-96x96.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/04\/image11-1-96x96.png","caption":"Dhrupalsinh Barad"},"description":"As a seasoned project manager at Mavlers, I bring over nine years of expertise in Project Management, Email Marketing and automation, and Client Servicing. My enthusiasm lies in exploring emerging technologies, which I believe hold immense potential to transform our world positively. When I'm not busy solving problems for our clients, managing teams, or managing projects, you can find me lost in a good book or grooving to dance tracks. Helping others thrive and adding value wherever I can is what keeps me going.","sameAs":["https:\/\/www.linkedin.com\/in\/dhrupalsinhbarad\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/40789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/comments?post=40789"}],"version-history":[{"count":22,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/40789\/revisions"}],"predecessor-version":[{"id":40841,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/40789\/revisions\/40841"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media\/40818"}],"wp:attachment":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media?parent=40789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/categories?post=40789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/tags?post=40789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}