Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Extends don't bubble blocks to base template #24

Open
ghost opened this issue Jun 8, 2010 · 0 comments
Open

Nested Extends don't bubble blocks to base template #24

ghost opened this issue Jun 8, 2010 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2010

'### base.html
<html>
<head><title>{% block title %}OHH NOES!{% endblock %}</title></head>
<body>
<div id="main">{% block body %}{% endblock %}</div>
</body>
</html>

'### one_col.html (notice no title block)
{% extends "base.html" %}
{% block body %}
<div id="col1">{% block content %}{% endblock %}</div>
{% endblock %}

'### report.html (notice title block)
{% extends "one_col.html" %}
{% block title %}Awesome Report{% endblock %}
{% block content %}I love H2O!{% endblock %}

'### view-source: http://www.example.com/report.html
<html>
<head><title>OHH NOES!</title></head>
<body>
<div id="main">
<div id="col1">
I love H2O!
</div>
</div>
</body>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants