Hi everybody. Can i do the below thing?

in the template "foo.html" write this:

...
{% for n in objects %}
                var nomeform_{{n.i}} = "{%block validate_form_{{n.i}} %}
{%endblock%}";
{% endfor %}
...

In the template "foo2.html" write this:

{% extends "foo.html"%}
...
{%block validate_form_1 %}Form1 bla bla bla{%endblock%}
{%block validate_form_2 %}Form2 bla bla bla{%endblock%}
...

The view returns:

...
list = [
            {'object_list':prev_list},
            {'object_list':lott_list}
    ]

    return render_to_response('foo2.html',{'objects':list},
context_instance=RequestContext(request))

The number of the object list is arbitrary. It can be one, two, three,
etc and obviously in the foo2.html set correctly.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to