I’m trying to use the following scheme below:
example of my template elements/h1.html
{% comment %} djlint:off {% endcomment %}
{% load allauth %}
<h1>
{% default slot %}{% endslot %}
</h1>
It is possible to declare the h1 in another template, via
{% element h1 %}
{% trans "Sign In" %}
{% endelement %}
for example, do I pass the name of a class? This way I can customize forms and other elements via .css.
<h1 class="login-title">
Sign-in
</h1>
New contributor
Mateus Caccelli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.