Open tacevski opened 6 months ago
Your code should be
{% TWIG_BLOCK %}{{ include('dc:test_content') }}{% END_TWIG_BLOCK %}
I added one space char after {{ and before }}. Twig is very strict regarding the spaces... Also the space before {{ and after }} : I suppose these will be printed out in the end - I removed them in the code above.
Trying to use dynamic content as per Example 3: Reusable code snippets using the following...
{% TWIG_BLOCK %} {{include('dc:test_content')}} {% END_TWIG_BLOCK %}
I get the error...
mautic.NOTICE: Swift_TransportException: Error while rendering part text: line 1: attempt to call non-existent macro 'include' (uncaught exception) at /var/www/mautic/app/bundles/EmailBundle/Swiftmailer/Transport/AbstractTokenArrayTransport.php line 291 while running console command
mautic:emails:send[]