title: Twig array access
body: <p>I'm trying to print out value of the variable passed to the twig template. I'm using this code: </p>
  
  <p><code>{{ naziv[0] }}</code>  Index is 0 because passed array has only one element. Mentioned code produces following error:</p>
  
  <blockquote>
    <p>Key "0" for array with keys "title" does not exist in...</p>
  </blockquote>
  
  <p>but when I use for loop like this:</p>
  
  <pre><code>{% for key,value in naziv %}
  {{ value }}
  {% endfor %}
  </code></pre>
  
  <p>I get what I want.</p>
  
  <p>What's wrong with <code>{{naziv[0]}}</code> ?</p>