Answers.Body: <p>You have a space between the <code>{</code> and <code>%</code> in your twig tags. That needs to be removed. :)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-24T10:15:10.623Z
Answers.LastActivityDate: 2016-02-24T10:15:10.623Z
Answers.UserDisplayName: André Elvan
Body: <p>Folks:</p>
  
  <p>I am having issue getting Twig to extend the template. The details:</p>
  
  <ul>
  <li>Craft installed fine.</li>
  <li>This is on a live server.</li>
  <li>The default Craft welcome page appears as normal so Twig must be
  working.</li>
  <li><p>When I try to pull up an entry with one of my own templates, Twig does
  not pull the content from the main Twig template. You should see the
  header info and have the css pulled and all the rest. If I strip
  everything out the template and leave some plain text I still see
  this in the browser:</p>
  
  <p><code>{ % extends "_layouttest" % } { % block main % } This is the correct template alright! { % endblock % }</code></p></li>
  </ul>
  
  <p>I have done the following:</p>
  
  <ul>
  <li>Checked that I am not pulling the template directly. I am not. This
  is a proper URL for an entry I created in Craft.</li>
  <li>Dumped the cache.</li>
  <li>Checked the template locations from within the CP. All seems to be
  pointing in the correct direction. The fact that the right template
  is being pulled confirms this.</li>
  <li>Read through <a href="https://craftcms.stackexchange.com/questions/11361/twig-code-showing-in-browser">this thread</a> and <a href="https://craftcms.stackexchange.com/questions/5206/only-layout-template-being-rendered-in-local-environment">this one</a>. No joy.</li>
  </ul>
  
  <p>Any assistance would be appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-23T21:56:29.743Z
Comments.Text: You don't actually have a space between the `{` and `%` in your code, do you?
Comments.UserDisplayName: André Elvan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-24T02:01:22.003Z
Comments.Text: You have so got to be kidding me, right? Yes, that was the problem. And no, I am not a complete dunce (but it feels that way). ExpressionEngine tags worked in a similar fashion. Thanks!
Comments.UserDisplayName: Wonko
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-24T10:15:28.310Z
Comments.Text: Haha, cool. Posted it as an answer. :)
Comments.UserDisplayName: André Elvan
Tags: <templating>
Title: Twig template not extending
ThreadText: # Twig template not extending
  
  (Asked by: username_0 on 2016-02-23)
  
  Folks:
  
  I am having issue getting Twig to extend the template. The details:
  
  * Craft installed fine.
  * This is on a live server.
  * The default Craft welcome page appears as normal so Twig must be
    working.
  * When I try to pull up an entry with one of my own templates, Twig does
    not pull the content from the main Twig template. You should see the
    header info and have the css pulled and all the rest. If I strip
    everything out the template and leave some plain text I still see
    this in the browser:
  
    `{ % extends "_layouttest" % } { % block main % } This is the correct template alright! { % endblock % }`
  
  I have done the following:
  
  * Checked that I am not pulling the template directly. I am not. This
    is a proper URL for an entry I created in Craft.
  * Dumped the cache.
  * Checked the template locations from within the CP. All seems to be
    pointing in the correct direction. The fact that the right template
    is being pulled confirms this.
  * Read through [this thread](https://craftcms.stackexchange.com/questions/11361/twig-code-showing-in-browser) and [this one](https://craftcms.stackexchange.com/questions/5206/only-layout-template-being-rendered-in-local-environment). No joy.
  
  Any assistance would be appreciated.
  
  **Tags:** templating
  
  > **Comments:**
  > **username_1**: You don't actually have a space between the `{` and `%` in your code, do you?  
  > **username_0**: You have so got to be kidding me, right? Yes, that was the problem. And no, I am not a complete dunce (but it feels that way). ExpressionEngine tags worked in a similar fashion. Thanks!  
  > **username_1**: Haha, cool. Posted it as an answer. :)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-24. Score: 4
  
  You have a space between the `{` and `%` in your twig tags. That needs to be removed. :)
  
  
  ---
  
  