Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. {% for o in [1,2,3] %}
  2. <div class="{% cycle 'row1' 'row2' %}">
  3. {% cycle 'row1' 'row2' %}
  4. </div>
  5. {% endfor %}
  6.  
  7. Could not parse the remainder: '[1,2,3]' from '[1,2,3]'
  8.  
  9. {% for o in "123"|make_list %}
  10. <div class="{% cycle 'row1' 'row2' %}">
  11. {% cycle 'row1' 'row2' %}
  12. </div>
  13. {% endfor %}
  14.  
  15. {% with '1 2 3' as list %}
  16. {% for i in list.split %}
  17. {{ i }}<br>
  18. {% endfor %}
  19. {% endwith %}
  20.  
  21. 1
  22. 2
  23. 3
  24.  
  25. <div class="btn-group">
  26. <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">
  27. Modality
  28. <span class="caret"></span>
  29. </a>
  30. <ul class="dropdown-menu" id="Modality">
  31. <li><a href="#">Action</a></li>
  32. </ul>
  33. </div>
  34.  
  35. {% with 'Modality Otherbutton Thirdbutton' as list %}
  36. {% for i in list.split %}
  37. <!-- copy/paste above code with Modality replaced by {{ i }} -->
  38. {% endfor %}
  39. {% endwith %}
  40.  
  41. {% for x in "1 2 3" %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement