# Twig iteration on a table

**URL:** <https://forum.mautic.org/t/twig-iteration-on-a-table/35793>\
**Category:** Product Support\
**Created:** [June 4, 2025, 12:16pm UTC](https://forum.mautic.org/t/twig-iteration-on-a-table/35793 "2025-06-04T12:16:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [June 5, 2025, 3:12pm UTC](https://forum.mautic.org/t/twig-iteration-on-a-table/35793/2 "2025-06-05T15:12:16Z")

</div>

Hello @henri9813,

GrapeJS does indeed modify your MJML code when you open your custom template. This is quite common, but there are workarounds to fix it.

I have written an explanation on how to prevent GrapeJS from automatically changing your code for your exact situation. If you use `{% verbatim %}` before opening your Twig block, and close it after the last `{% endverbatim %}`, GrapeJS will handle your code correctly.

You can find the full explanation here:

> [@Troubleshooting TWIG\_BLOCK in Mautic Email Templates](https://forum.mautic.org/t/troubleshooting-twig-block-in-mautic-email-templates/34321):
>
> I came across an issue that I believe many Mautic users might face when combining Twig and MJML for email templates, especially when trying to use RSS feeds. Here’s my experience and how I managed to resolve it: I was developing an email template with RSS functionality, using this great plugin: [Mautic Advanced Templates Bundle](https://github.com/Logicify/mautic-advanced-templates-bundle). The plugin allows you to use {% TWIG\_BLOCK %} in your emails, making it possible to dynamically generate content like RSS feeds. It also ensures Mautic tracks user int…

Best regards,  
Ricardo

---

_[View the full topic](https://forum.mautic.org/t/twig-iteration-on-a-table/35793)._
