• Skip to main content
  • Skip to footer

Dyspatch

  • Products
      • Overview
      • No-code email builder
      • Email collaboration
      • Interactive email
      • Template localization
      • Expert services
      • Overview

      By use case

      • Product reviews
      • Surveys
      • Add to cart
      • Calendar booking
      • Product carousel
      • Interactive polls
      • View all

      By vertical

      • SaaS
      • Ecommerce
      • Fintech
      • Travel
      • Healthcare
      • On-demand services
      Sendwithus Logo
      • Overview
      • Analytics
      • A/B testing
      • Triggered emails
  • Pricing
  • Case studies
  • Resources
    • Blog
    • Product shorts
    • Webinars
    • White papers
    • Ebooks, guides, & reports
  • Company
    • About us
    • Careers
    • Contact us
  • Login
    • Dyspatch
    • Sendwithus
Get a demo

How to Use Template-specific Jinja Variables with Snippets

By Veronica Best | October 6, 2014 | Categories: News, Product
zapier blog
⏱ 2 minute read

Recently, we received a question from a customer that prompted us to scratch our heads for a few seconds: “How can I use template-specific variables that aren’t passed into the data field of the API to send mail?” We did some research and devised a pretty simple and interesting solution.

Snippet Setup

You can insert a variable into the snippet that will be pulled from the template

The idea is to set up a snippet which includes a variable of your choosing. Then you can set that Jinja variable separately in each template.

Once you have your variable in the snippet, all you have to do is set it in the template, like so:

Set the Jinja variable

set variable, call snippet, profit

In doing this you’ll be able to have the contents of the snippet render in the template using the previously set Jinja variable. There are tons of really cool possibilities for taking advantage of this method, like building tracking URLs and split testing your branding.

If you have any questions about how this works or you come up with another interesting use-case, we’d love to hear from you: support@sendwithus.com

Veronica Best, VP of Product

Voracious reader and self-professed #emailgeek. Passionate about all things product. VP of Product at Dyspatch.

  • LinkedIn

    Related Posts

  • What’s New in Dyspatch, August 2020
  • Sync Email Templates to Braze, Now in Dyspatch
  • A/B Test with Confidence.js
Share this post:
  • Facebook
  • Pinterest
  • Twitter
  • Linkedin
LET’S CHAT!

Why wait? Take your email marketing to the next level today.

Get a demo

737 Fort Street,
Victoria, BC
V8W 1G9
Canada

  • Phone 1-877-458-9231
  • Email us@dyspatch.io
  • Facebook
  • Twitter
  • Instagram
  • LinkedIn
  • YouTube

Get the latest email strategies, tips, and trends right to your inbox.

About Dyspatch

  • About us
  • Careers
  • Contact us
  • Pricing
  • Press & Media

Features

  • Dyspatch overview
  • No-code email builder
  • Email collaboration
  • Email template localization
  • Apps in Email overview
  • Expert Services
  • Sendwithus Overview

Email resources

  • Blog
  • Dyspatch product shorts
  • Webinars
  • White papers
  • Ebooks Guides & Reports
  • HTML email templates
  • Knowledge base
  • Email production glossary

Integrations

  • Integrations overview
  • Email builder for Braze
  • Email builder for Iterable
  • Email builder for Salesforce Marketing Cloud
  • Email builder for Pardot
  • Email builder for SendGrid
  • Email builder for Marketo
  • Email builder for HubSpot
  • Email builder for Oracle Eloqua

Dyspatch respectfully acknowledges the Lekwungen and W̱SÁNEĆ People, whose unceded territories we live and work on. We would also like to express our gratitude to all of the Coast Salish people as we continue to work and live as guests on their lands.

We recognize that acts of colonization created many inequities for First Nations, Inuit, and Métis people. As a company, we acknowledge that we have a responsibility to work towards reconciliation and to remain open to suggestions and consultations, especially with Indigenous communities.

Privacy policy    |    Terms of service    |    Web accessibility    |    Cookie policy    |    Usage    |    Sitemap

Copyright © 2022 Techdrop Labs Inc. All Rights Reserved.

Get a quote

Get a demo

Features & Functionality
 StarterTeamsTeams+
Universal styling
Drag and drop email builder
Custom code editor
Custom fonts
Device specific elements
Version history
Social media link settings
Commenting
Live previews
Dark mode previews
Litmus testing
Custom merge fields
Image hosting
Brand & legal compliance guardrails
User role permissions
ESP logic
Code Export
AMP Email Support
Approval Workflows
API Access
User Management
Translation (via Smartling)