digital-marketing-framework/template-engine-twig

Digital Marketing Framework - Template Engine - Twig

2.1.1 2024-06-11 17:53 UTC

This package is auto-updated.

Last update: 2024-07-11 17:58:53 UTC


README

Use Twig as Default Template Engine

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