<p>You are hashing the string <code>'{{item.mailto}}'</code>. There shouldn't be any need for the quotes or second set of curly braces.</p>

<p>Twig does not permit curly braces inside curly braces.</p>

<p>Try <code>{{ item.mailto|hash }}</code> instead.</p>

CC BY-SA 3.0
2016-09-26T15:46:47.733Z
{{ item.mailto|hash }} work's fine. Thx
The Frog
CC BY-SA 3.0
2016-09-26T13:16:32.740Z
2016-09-26T13:16:32.740Z
Fyrebase
<p>I have a Matrix with a block for a contact form. I have a field for the email recipients. But the output doesn't work.</p>

<p>How can I render/output the output a tag within another tag, like this?</p>

<pre><code>&lt;input type="hidden" name="toEmail" value="{{ '{{item.mailto}}'|hash }}"&gt;
</code></pre>

<templating><layout>
Output a Twig tag within another Twig tag
# Output a Twig tag within another Twig tag

(Asked by: username_0 on 2016-09-26)

I have a Matrix with a block for a contact form. I have a field for the email recipients. But the output doesn't work.
How can I render/output the output a tag within another tag, like this?

**Tags:** templating, layout


---

## 1 answers

### Answer by username_1 on 2016-09-26. Score: 3

You are hashing the string `'{{item.mailto}}'`. There shouldn't be any need for the quotes or second set of curly braces.

Twig does not permit curly braces inside curly braces.

Try `{{ item.mailto|hash }}` instead.

> **Comments:**
> **username_0**: {{ item.mailto|hash }} work's fine. Thx  

---

