-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Template inheritance problem #7
Comments
At first glance it looks like it should be, yes. I'll try to take a look at this soon! |
I have same problem. I have two templates. {% block subject %}Email subject{% endblock %}
{% block html %}
<html>
..skip..
{% block html_content %}{%endblock %}
..skip..
</html>
{% endblock %} and 'test.email': {% extends "base.email" %}
{% block html_content %}
<h1>Hello world</h1>
{% endblock %} I expect that render_block_to_string('test.email', 'html') returns full html code with text 'hello world', |
I think what's happening is that we:
Clearly the last step here is wrong and that we need to be using the block from the sub-template here. |
Thanks for the bug report, by the way! I was sure I had missed some cases in my test-cases. Clearly you found one! |
I have this mostly fixed. |
It works for me. Thank you very much! |
👏 |
Just pushed version 0.5 with these changes. Thanks for confirming it works! |
Hey,
can you please take a look at aericson@40e5a4d
This test fails.
Shouldn't this be supported?
Thanks!
The text was updated successfully, but these errors were encountered: