title: Creating a list on the fly in a Django template
body: <p>I don't know whether it's possible, but I'd like to be able to write something like the following:</p>
  
  <pre><code>{% with var1 var2 var3 as some_list %}
      {{ some_list|maximum }}
  {% endwith %}
  </code></pre>
  
  <p>Creating a list on the fly from an arbitrary number of template variables and/or literals seems useful, so I'm hopeful that I've overlooked something simple.</p>
  
  <p>Failing that, though, I'd like to know how to create a template tag which accepts an arbitrary number of arguments. (I've played around with <a href="http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#shortcut-for-simple-tags" rel="noreferrer"><code>simple_tag</code></a>, which works well for tags which accept a fixed number of arguments.)</p>
  
  <p>I don't want to go to the trouble of creating a parser and subclassing <code>django.template.Node</code> until I've ascertained that there's no simpler solution.</p>