Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-26T15:46:47.733Z
Answers.Text: {{ item.mailto|hash }} work's fine. Thx
Answers.UserDisplayName: The Frog
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-26T13:16:32.740Z
Answers.LastActivityDate: 2016-09-26T13:16:32.740Z
Answers.UserDisplayName: Fyrebase
Body: <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>
  
Tags: <templating><layout>
Title: Output a Twig tag within another Twig tag
ThreadText: # 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?
  
  ```
  <input type="hidden" name="toEmail" value="{{ '{{item.mailto}}'|hash }}">
  
  ```
  
  **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  
  
  ---
  
  