Answers.Body: <p>You'll never need to put Twig tags within other Twig tags... Try it like this:</p>
  
  <pre><code>{% include "partials/includes/page-header" with { 'title' : entry.heading } %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-12T15:21:02.960Z
Answers.LastActivityDate: 2014-09-12T15:21:02.960Z
Answers.UserDisplayName: Lindsey D
Body: <p>I have this:</p>
  
  <pre><code>{% include "partials/includes/page-header" with { 'title' : '{{ entry.heading }}' } %}
  </code></pre>
  
  <p>But it seems that nothing I do will actually pass <code>{{ entry.heading }}</code> as 'title' in the include.</p>
  
Tags: <variable><include>
Title: How would I pass and entry's field value to an include?
ThreadText: # How would I pass and entry's field value to an include?
  
  (Asked by: username_0 on 2014-09-12)
  
  I have this:
  
  ```
  {% include "partials/includes/page-header" with { 'title' : '{{ entry.heading }}' } %}
  
  ```
  
  But it seems that nothing I do will actually pass `{{ entry.heading }}` as 'title' in the include.
  
  **Tags:** variable, include
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-09-12. Score: 11 | Accepted answer
  
  You'll never need to put Twig tags within other Twig tags... Try it like this:
  
  ```
  {% include "partials/includes/page-header" with { 'title' : entry.heading } %}
  
  ```
  
  
  ---
  
  