Skip to content

Conditional Syntax does not work #2

Description

@gurpreetatwal

The markdown syntax file states that conditional blocks should be written as {{#if <cond>}} ... {{/if}}, but this syntax throws an error when input into Postmark's template editor:

Image
Image

I was able to get it working using the following syntax (although I wasn't able to figure out syntax for else case):

{{#premium_member}}
Thank you for being a premium member for {{.}}!
{{/premium_member}}

reference: https://postmarkapp.com/support/article/1077-template-syntax#advanced-value-handling

Postmark Template Editor Test

Template:
Image

Preview:
Image
Image

Is this an issue with the documentation or is there a bug in the Postmark template editor?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions