title: Dynamically get a variable (from a string) in Jinja
body: <p>My Jinja top-level context has variables defined in sequence like <code>foo_0</code>, <code>foo_1</code>, etc.</p>
  
  <p>I'd like to be able to access those variables dynamically by generating strings with code like <code>"foo_" + str(0)</code>.</p>
  
  <p>If effect, I want to do something like <code>{{ eval("foo_0") }}</code> in my Jinja template, and access those variables in sequence.</p>
  
  <p>Is this possible?</p>
  
  <p>Note: I'm using a cloud service I don't control (which provides Jinja templating), so:</p>
  
  <ul>
  <li>I can't use data structures in the Jinja context (all variable values must be strings).</li>
  <li>I can't customize the Jinja runtime environment or add filters. But it would be helpful to know if this can be solved by adding a custom filter.</li>
  </ul>