title: Access a flask template dictionary variable
body: <p>I have a <code>flask</code> variable <code>{{blogposts}}</code> that outputs:</p>
  
  <pre><code>[{u'MONTH': 12, u'YEAR': 2016, u'post_name': u'data here', u'post_title': u'data here'}, 
  {u'MONTH': 12, u'YEAR': 2016, u'post_name': u'data here', u'post_title': u"data here"}, 
  {u'MONTH': 12, u'YEAR': 2016, u'post_name': u'data here', u'post_title': u'data here'}] 
  </code></pre>
  
  <p>i have a flask template that outputs this like:</p>
  
  <pre><code>&lt;ul&gt;
      {% for blogpost in blogposts %}
          &lt;li&gt;
              &lt;a href="http://blog.site.com/wordpress/{{blogpost.MONTH}}/{{blogpost.YEAR}}/{{blogpost.post_name}}"&gt;
                  {{blogpost.post_title}}
              &lt;/a&gt;
          &lt;/li&gt;
      {% else %}
          &lt;li&gt;no blog posts right now...&lt;/li&gt;
      {% endfor %}
          &lt;div class="clearL"&gt; &lt;/div&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p><strong>RENDERED HTML</strong></p>
  
  <pre><code>&lt;li&gt;
                      &lt;a href="http://blog.site.com/wordpress///"&gt;
  
                      &lt;/a&gt;
                  &lt;/li&gt;
  
                  &lt;li&gt;
                      &lt;a href="http://blog.site.com/wordpress///"&gt;
  
                      &lt;/a&gt;
                  &lt;/li&gt;
  
                  &lt;li&gt;
                      &lt;a href="http://blog.site.com/wordpress///"&gt;
  
                      &lt;/a&gt;
                  &lt;/li&gt;
  
                  &lt;li&gt;
                      &lt;a href="http://blog.site.com/wordpress///"&gt;
  
                      &lt;/a&gt;
                  &lt;/li&gt;
  </code></pre>
  
  <p><strong>I want to access the <code>value</code> for the</strong> <code>month</code>, <code>year</code>, post_name' and <code>post_title</code> (in this order), instead its outputting:</p>
  
  <pre><code> MONTH YEAR post_name post_title MONTH YEAR post_name post_title MONTH YEAR post_name post_title 
  </code></pre>
  
  <p>How can I accomplish this?</p>
  
  <p>Thank you</p>