# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
