Create and Manage Dynamic Code Blocks Easily with Partials

[ 0 By

Between one-off marketing sends, recurring newsletters, transactional emails, and more, there are seemingly countless emails that you’re responsible for building. It can be incredibly time consuming to code each one, even when you use a template.

Introducing Partials

That’s why we created Partials, a method for you to create global, dynamic, reusable blocks of code for your emails. Available in Litmus Builder, you can use it for anything from updating your header and footer, maintaining layout structure and reset styles, or recycling commonly used components.

Partials are completely dynamic. Editing and saving a Partial updates it across every email where that Partial is used. That way, you only need to update one Partial for it to be globally applied to all your other emails.

Introducing Partials

Available now in all Litmus paid accounts and the free Builder plan, Partials allow you to get back to what you do best: building better emails.

Try Partials→

 

What Does This Mean For Your Email Design Workflow?

Whether you’re tweaking content, updating styles, looking for leaner code, or working across a large team, Partials can drastically improve your email design workflow. By using Partials, you can now:

  • Easily update and maintain multiple emails. Make changes to one Partial and see all of your emails update.
  • Reduce code complexity. Partials hide large blocks of code, allowing you to focus on and navigate to only what’s needed.
  • Keep teammates on the same page. Ensure your team uses the most up-to-date code and content, reducing errors and keeping your emails consistent.

When to Use Partials

Partials can help you in several different ways during the course of your email production workflow:

  • Use partials with headers and footers to maintain consistency without using a template
  • CSS reset styles with Partials keep all your emails on the same base formatting
  • Easily manage layout structure such as conditional Outlook wrapper tables
  • Commonly used call-to-actions can be reused across emails with Partials

Our good friends at Code School now solely use Litmus Builder as their email editor thanks to the addition of Partials:

There are many great features in Builder for creating HTML emails, but Partials support made it the best for maintaining emails as well. Global changes to copy, logos, and social links can now be made in one location in our 40+ transactional emails. My workflow now begins with Builder.

– Dan Denney, Code School

Getting Started With Partials

litmus-builder-partials

To use Partials, head into Litmus Builder and open up one of your email projects (or start a new one). Go to Templates in the top right corner of your email and click on the Partials filter to see all of your available Partials. Or, you can click on New Partial to start building your own Partial. They’re organized and managed exactly the same as Templates, existing in their own Builder project and shared for an entire account.

To reference a Partial while coding in Builder, simply use the syntax {{partial}} in the email and reference the title of the Partial. For example, if the Partial document name is header, then use {{header}} in the code editor to reference it. Partials render in real-time for Browser View and generate when running Instant Previews or sending test emails.

To grab the final HTML of an email with Partials compiled, go to the View Compiled modal or download the email and open the -compiled.html version of the email.

What Does This Mean For Builder?

With Instant Previews, CSS inlining, Tracking Manager, and now Partials, Litmus Builder is a full-fledged email campaign build system, combining the power of task runners and static site generators without the dependencies.

Have you ever been intimidated by or frustrated with the complexity that comes with the a task runner workflow? Banish the thoughts of relying on npm, manually setting up Grunt or Gulp, configuring Middleman or Assemble, or ever using a terminal.

With Partials, you get the power of task automation without worrying about setup or maintenance. It’s all baked in by default, so you can leverage these features in a friendly workflow and get back to doing what you do best: designing and building great emails.

Check it out for yourself!

Now it’s your turn

With Litmus Builder, you can create better email campaigns from start to finish. What will you create?

Build better emails →