# Text Template Guide

Text Templates are a way to dynamically create text on the fly when a brick runs. Here’s an example of a simple text template:

```django
Hello, {{ @profile.email }}!
```

In PixieBrix, you can use the Text Template entry mode to dynamically construct inputs for any field. Here’s the same template being used to create a greeting for the [Window Alert brick](https://www.pixiebrix.com/marketplace/b249e2e3-7fa1-4e7a-a0ba-70cfa1a18707/window-alert/):thumbsup:

<figure><img src="/files/PNGWjY7WcV2CBqLYu7Sl" alt=""><figcaption></figcaption></figure>

Using the text template entry mode to create a greeting for the Window Alert brick dynamically.

To provide a text template in the Page Editor, ensure the field entry mode is Text Mode, as indicated by the **ABC** icon.

Now let's learn about [Basic Text Templates](/developing-mods/developer-concepts/text-template-guide/basic-text-templates.md).


---

# 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.pixiebrix.com/developing-mods/developer-concepts/text-template-guide.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.
