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

Allow extending a base template #22

Open
rafaponieman opened this issue Jan 11, 2021 · 1 comment
Open

Allow extending a base template #22

rafaponieman opened this issue Jan 11, 2021 · 1 comment

Comments

@rafaponieman
Copy link

rafaponieman commented Jan 11, 2021

I found that it's possible to extend a template, but only replacing the actual html_body and text_body blocks. However, if I make a base template like the following:

{% block html_body %}
<!DOCTYPE html>
<html>
<head>
    <title>Email</title>
</head>
<body>
  {% block html_content %}{% endblock %}
</body>
</html>
{% endblock %}

{% block text_body %}{% block text_content %}{% endblock %}{% endblock %}

And then replace html_content and text_content, it will render perfectly with a standard TemplateView, but it will turn out empty using BaseEmailMessage.

@pranithan-kang
Copy link

this issue is related to #10

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

2 participants