Hi,

I'm building a website using app engine.

I would like to use multiple inheritance but I'm not allow to put
block inside a block.
Here is piece of code which should describe the problem well:

let's assume a .html file called meta_base.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd";>
<head>

{% block meta_title %} {% endblock %}

</head>


and now I have the file base.html (which inherits from meta_base).

{% extends "meta_base.html" %}

  {% block meta_title %}
    <title>
      {% block title_content %} {% endblock}
    </title>
  {% endblock %}

Now I would like my children html page to look like this:

{% extends "base.html" %}

{% block title_content %}
  This is the title
{% endblock %}

But it does not work.

Any very descriptive answer will be greatly appreciated!!

thanks,

Rom


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to