title: How to use this for loop in Django template?
body: <p>This is my first post in the Stack Overflow. I have this loop which works perfectly fine in Python itself. </p>
  
  <pre><code>for i, j in enumerate(ls.split("/")):
      print i * " " + j
  </code></pre>
  
  <p>I want to implement same thing in the Django template. Here's what I thought I would do:</p>
  
  <pre><code>{% for i, j in enumerate(ls.split("/")) %}
  {% i * " " + j %}
  {% end for %}
  </code></pre>
  
  <p>But this doesn't work. I get <strong>ls</strong> variable from the views.py. <code>i and j</code> variable are made up while implementing for loop. Thanks</p>