Include syntax probe

Sailthru /blast Zephyr include-syntax probe

Trying 10 different inclusion syntaxes against stored template wm-newsletter-wrapper-test. Whichever Test N is followed by the GREEN bordered probe block (from the stored template body) is the working syntax.

Sanity: simple Zephyr

email = {email}

{if email}email-conditional works{else}email-conditional broken{/if}

strlen(apisecret) = {strlen(apisecret)}

Variants

Test 1 — include + double quotes
{include "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{include "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 2 — include + single quotes
{include 'wm-newsletter-wrapper-test'}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{include 'wm-newsletter-wrapper-test'}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 3 — include + bare name
{include wm-newsletter-wrapper-test}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{include wm-newsletter-wrapper-test}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 4 — include + var
{include {included_template}}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{include {included_template}}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 5 — template directive
{template "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{template "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 6 — partial directive
{partial "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{partial "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 7 — snippet directive
{snippet "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{snippet "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 8 — render directive
{render "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{render "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 9 — import directive
{import "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{import "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Test 10 — include_template
{include_template "wm-newsletter-wrapper-test"}

↓↓↓ Below this dashed pink box, anything until the next Test marker is what Sailthru substituted for the variant above ↓↓↓
{include_template "wm-newsletter-wrapper-test"}
↑↑↑ Above this dashed blue box was the substitution result ↑↑↑

Done.

If you believe this has been sent to you in error, please safely unsubscribe.