# How to use/populate template twig variables?

**URL:** <https://forum.mautic.org/t/how-to-use-populate-template-twig-variables/22420>\
**Category:** General Discussion\
**Created:** [January 21, 2022, 2:19pm UTC](https://forum.mautic.org/t/how-to-use-populate-template-twig-variables/22420 "2022-01-21T14:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 21, 2022, 2:19pm UTC](https://forum.mautic.org/t/how-to-use-populate-template-twig-variables/22420/1 "2022-01-21T14:19:34Z")

</div>

I’m in the process of creating a template. I found a couple of variables in the built-in \*.twig.html files, but I don’t find any information about them in the docs.

Let’s take the `Coffee` template as an example. It comes with `form.html.twig`. The file contains:

```auto
{% extends ":coffee:base.html.twig" %}

{% block content %}
    {% if message is defined %}
        <div class="well text-center">
            <p>{{ message|raw }}</p>
        </div>
    {% endif %}

    <div class="form-container">
        {% if header is defined %}
        <h4>{{ header }}</h4>
        {% endif %}
        {{ content|raw }}
    </div>
{% endblock %}

```

- `content` is the actual form, which is created via the compoents → form builder.
- What is `message`? It’s not the response message after the form was submitted. This data/string gets populated into `<div class="mauticform-message" id="mauticform_FORMID_message">MESSAGE.</div>`
- What is `header`? How do I define it?

I could especially use header, because I’d like to define a header that gets shown if the form is standalone (`mautic.mysite.com/form/ID`), but it won’t get shown if the form is embedded in a landing page (`mautic.mysite.com/page/ID` with the slot `{form=ID}`.

Can `header` be used for this? How so?
