title: Limiting results with Jinja (Python)
body: <p>Is there anyway in Jinja to limit results that are displayed based on the format?</p>
  
  <p>For example if I had a CSV with the following data:</p>
  
  <pre><code>Agent ID DOB
  152      31/07/1993
  175      05/12/1997
  </code></pre>
  
  <p>With a template setup like so:</p>
  
  <pre><code>filename = self._Report(self.date, self.time_from, self.time_to)
  env = jinja2.Environment()
  env.loader = jinja2.FileSystemLoader('templates')
  template = env.get_template('testtemplate.html')
  
  rdr = csv.DictReader( open(filename, "r" ) )
  csv_data = [ row for row in rdr ]
  
  return template.render( data=csv_data )
  </code></pre>
  
  <p>And a template like so:</p>
  
  <pre><code>{% for row in data %}
  &lt;td&gt;{{ row['Agent ID']] }}&lt;/td&gt;
  &lt;td&gt;{{ row['DOB']]&lt;/td&gt;
  {% endfor %}
  </code></pre>
  
  <p>Say if I just wanted to present data for Agent ID 152?</p>