digital-marketing-framework/typo3-template-engine-twig

Integrate Twig Template Engine into Digital Marketing Framework

2.1.0 2024-06-02 21:53 UTC

This package is auto-updated.

Last update: 2024-10-02 22:27:26 UTC


README

EXT:dmf_template_engine_twig is overriding the default template engine from EXT:dmf_core

It will allow you to use Twig in the template fields

Manual

Data access

It is possible to output the data directly with the field name. Example:

Hello {{ firstname }} {{ lastname }},

Thank you for your message!

Furthermore, we have an array in which all fields have been stored. Here is an example of how to access the array:

{% for key,value in all_values %}
  {{ key }}: {{ value }}
{% endfor %}

Twig Documentation

Twig Template