title: lambda as argument to jinja2 filter?
body: <p>I'd like to have a custom filter in jinja2 like this:</p>
  
  <pre><code>{{ my_list|my_real_map_filter(lambda i: i.something.else)|some_other_filter }}
  </code></pre>
  
  <p>But when I implement it, I get this error:</p>
  
  <pre><code>TemplateSyntaxError: expected token ',', got 'i'
  </code></pre>
  
  <p>It appears jinja2's syntax does not allow for lambdas as arguments? Is there some nice workaround? For now, I'm creating the lambda in python then passing it to the template as a variable, but I'd rather be able to just create it in the template.</p>