title: Problems with simple_tag array values in Django Template
body: <p>I'm trying to pass an array to my template with a simple tag.
  I created my module under app/templatetags/pages_navigation.py and in my opinion the code should be alright:</p>
  
  <pre><code>from django import template
  from pages.models import Page
  
  register = template.Library()
  
  @register.simple_tag(name='links')
  def pages_navigation():
    pages = Page.objects.all()
    links = [['Events','/']]
  
    for page in pages:
      links.append([page.title, '/'+page.url])
  
    return {'links':links}
  </code></pre>
  
  <p>In my template I try to access links like this:</p>
  
  <pre><code>&lt;ul&gt;
  {% if links %}
    {% for link in links %}
      &lt;a href="{{link.1}}"&gt;&lt;li&gt;{{link.0}}&lt;/li&gt;&lt;/a&gt;
    {% endfor %}
  {% else %}
    &lt;li&gt;no pages found&lt;/li&gt;
  {% endif%}
  &lt;/ul&gt;
  </code></pre>
  
  <p>However, somehow it seems like links is always empty. 
  When I tried the pages_navigation method in the python shell it worked fine..</p>
  
  <p>Is it possible that you can't return arrays from simple tag methods?</p>