Information Classification: External Restricted.
See https://www.chili-publish.com/security

Smart(er) templates are less complex

BATS, the formula for simplicity

In times of Covid-19, bats got a bad name (no pun intended). But they are special animals, equipped with Sonar to navigate. A very effective yet simple tool. Some people are scared of bats, due to the appearance in horror movies. And they sleep upside down…

We will use “Bats” to help you simplify your templates.

CHILI publisher is a template building engine that enables one smart template to output multiple variants of the same document. How do you get the most out of the smart template, without overdoing it?

The Formula:

B(ATS){*}

Translated to people with little affection for regex:
Build template - (Add 1 type of logic - Test - Simplify) {repeat until happy}

Desktop

Probably, your smart template journey starts on your desktop. If not, you can skip from this step to “Build your template”.

Conversion

The conversion itself is not the challenge. But it’s “What” you convert.

Reducing complexity before conversion will greatly benefit the quest for simplicity.

Imagine a design with a few thousand vector elements, used as a background for a design. When converting, these elements will be converted to vector elements, to be calculated individually to show in your browser window.

If these elements remain background items, and do not change with any variant, you can increase simplicity by combining all these elements into 1 vector layer and place this layer as an asset.

Simplify: Combine background elements into 1 placed asset

Build your template

Your document is now ready to be made smart(er).

At this stage, you have a blank document in CHILI publisher, or you have converted a document from your desktop application. Either way, it’s time to start adding Logic to the document, to make it smart.

B(ATS){*}

We have arrived at the recurring theme of the formula (ATS){*}.

  • Add 1 type of Logic

  • Test the result

  • Simplify

  • {*} Repeat

Add Logic

The art of adding logic to your document is the core of CHILI publisher. Enabling 1 smart template to create several types of output.

This means, that the logic added to your template has the power to change the output, depending on the circumstances.

Imagine a campaign for CHILL water, for several sport types. A database feeds the template with types of output, flavor, etc. So, all elements are available, to make output in different formats, styles and sizes.

To make a document smarter, several tools are at your disposal.

Tip: Add one logic layer and test

Unlike the basic human rights, not all logic is created equal. Some types of logic will have more impact on the cost of processing the variant.

Adding a single variable, to a one page document (like a Business Card) is less “expensive” than let’s say an anchored frame, that holds several variable in itself, combined with auto-grow.

Example

Frame1 will auto-grow, according to more content added

Frame2 is anchored, to Frame1, and will refer to its bottom coordinates.

So, when more content is added, Frame1 grows, and Frame2 will move down.

These are 3 calculations to be coordinated.

  • Variables

  • Auto-grow

  • Anchoring

Each layer of logic will add complexity, and make the document “heavier” to calculate the output.

Tip: Add 1 layer at a time

Test

When you added 1 layer of automation logic, test the output.

How can you test? That will differ according to your setup. If your setup allows the interaction with an end-user to fill in the variable, look for challenging variable content. What is the shortest word, what is the longest variant?

Maybe your setup contains a datasource, that will auto populate the variables. It’s best then to check the shortest and longest variable. Does the datasource contain special characters?

What is your output?

Check digital output, with or without variable

Check print / pdf output, with and without variables

Check output with datasources

Simplify

When your test is successful, it is a good time to think about simplification, before adding more automation logic.

E.g. You can add a frame anchor to the left and bottom of another frame.

 

In the picture, you see Frame2 is anchored to 2 targets.

Frame2 is anchored to the bottom, where the top of Frame2 is anchored to the bottom of Frame1, with an offset of 5mm.

Frame2 is anchored to the left side of Frame1, without offset.

There’s nothing wrong with this setup, but the left of Frame1 never changes. So, the second anchor of Frame2 is unnecessary. And it would mean a 4th calculation, where only 3 are necessary.

This is a easy simplification, than can save processing time.

Even when it only saves a few microseconds, this would be multiplied by

  • Amount of outputs (1 digital / 2 print)

  • Amount of records in a Data Source (e.g. 1M)

This add up to: 5 microseconds x 2 million = 10 million microseconds = 166 minutes.

Repeat {*}

You created your document (manually or through conversion), you Added logic, you tested and you simplified.

Time to repeat, add more logic, test and simplify.

{*} is a reference to Regular Expressions. Where the asterisk refers to “infinite” times. You can always improve!

Template building is not an exact science

Since template logic is calculated by a computer, the outcome should be very predictable.

But, templates are created by humans. Humans are creative architects of solutions. Every outcome has several ways to get there. Ask 2 colleagues to make the same smart template, they will both find different approaches.

That’s why template building is not an exact science. Add to that the several possible layers of complexity, and amount of data being output through datasources, and you might run into unexpected behaviour.

That’s why follow the BATS approach gives you the best possible outcome. Document your steps, so you can always return one step to re-test.

If the outcome is not what is supposed to happen, then it’s time to call in the troops, and inform us you may have found an exception.

You could submit a support ticket with the Client Success team, or you could ask for specialist help.

Our service partners have trained staff to help you with the template building journey.

Cost weight

Below is an attempt to list features that will make your template smarter. Some features have more impact on complexity than others. This table gives you an insight in less and more taxing features.

The more taxing features you use, the more complex your document will be, and the more testing will be required.

Low Tax

Medium Tax

Heavier Tax

Low Tax

Medium Tax

Heavier Tax

Swatches

Text in shapes

Snippets

Image frames

Complex variables

Alternate Layouts

(low amount) Simple vector Objects

Actions

Complex Actions

Text Frames

Multipage documents

Anchors

Simple variables

Several styles in 1 document (paragraph and character style)

Dynamic Layouts

 

 

Logic / Actions triggering other logic

 

 

Transparancy effects

 

 

Dynamic Asset Providers

 

 

Tables

 

 

Datasources

All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security