Skip to content

Feature request: Conditional blocks #154

Open
@jeanmatthieud

Description

@jeanmatthieud

Hi,

I just discovered your tool, and it's a perfect match for my need.
I need a simple tool to allow a marketing team to generate / edit email templates.

The HTML template is then processed in a Twig template engine, to inject proper content.
It works great for simple if / else statements and variables.

However, I would like to be able to display / hide a block on a condition, and iterate on some other (eg: product list).
One easy / messy way to do it, would be to add a "Prepend (raw content)" / "Append (raw content)" options on every block (in the "Inspect pannel), added during HTML rendering.

Eg:

  • Prepend: {% if testCond %} or {% for product in products %}
  • Append: {% endif %} or {% endfor %}

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