title: how to split the string in django template?
body: <p>i am trying to split the string in template using custom template filter. But i got an error </p>
  
  <pre><code>    TemplateSyntaxError at /job/16/
  'for' statements should use the format 'for x in y': for skill in form.instance.skills | split : ","
  </code></pre>
  
  <p>Here it is my filter</p>
  
  <pre><code>@register.filter(name='split')
  def split(value, key):
      """
          Returns the value turned into a list.
      """
      return value.split(key)
  </code></pre>
  
  <p>this is my template</p>
  
  <pre><code>&lt;h4&gt;Skills&lt;/h4&gt;
          {% for skill in form.instance.skills | split : "," %}
              {{ skill }}
            {% endfor %}
  </code></pre>
  
  <p>Thanks</p>