> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/email-this-issue-for-jira-server-data-center/documentation/outgoing-emails/email-templates/rendering-templates-within-templates.md).

# Rendering templates within templates

<mark style="color:green;">SINCE 7.1.0.5</mark>

No more duplicate template fragments, Email This Issue now can render templates within templates in a very simple way.

To include a template by its name, add this to your template:&#x20;

```
#renderTemplate("MySignatureTemplate")
```

To include a template by its ID, add this to your template:&#x20;

```
#renderTemplate(123)
```

Recursive inclusion of templates are handled and prevented.

{% hint style="info" %}
**Note**: Velocity variables declared in the templates as `#set($variable=...)` will only be usable in the template that declares them. Variables are not visible outside their declaring template.
{% endhint %}

<br>
