Hey people! I'm trying to reuse this part of code (that have template language) into my view (html):
<li class="gallery-item {% if forloop.last %}last-gallery-item{% endif %}"> <div class="item-img">{% image item 200 200 %}</div> <div class="info"> <h2><a href="#">{{name}}</a></h2> <ul> <li><a href="#">Edit</a></li> </ul> </div> </li> Here am my problems: - if I put this in a {% block %} (inside the same html) I don't know how to use it (already search without success). - if I put this in the parent (usign the {% extends %}) I do not have access to those variables (that I catch with the template language) - and by end. I tried to put this block of code in a external html and tried to use the {% include %}. But this, by the end, crash when I use the template language. Any tip? Thanks! -- Graciously, Filipe Silvestrim AUGRS Manager Flash Game Developer Flash CS3 Professional Certified Adobe Certified Instructor Personal Blog - ["http://www.filipesilvestrim.com"] Adobe User Group Rio Grande do Sul, Brazil - ["http://www.augrs.com"] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---