SHARE
TWEET

Untitled

a guest Feb 17th, 2020 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ul>
  2. {%- for item in tree.children recursive %}
  3.     <li><a href="{{ item.name }}">{{ item.name }}</a>
  4.     {%- if item.children -%}
  5.         <ul><a href="{{ loop(item.children) }}">{{ loop(item.children) }}</a></ul>
  6.     {%- endif %}</li>
  7. {%- endfor %}
  8. </ul>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top