I have a template with the following: {% extends "main/main-template.html" %} I also need a template with the same thing, only instead it {% extends "main/main-template-quick.html" %} It seems like a DRY violation to just copy and paste the same code into a new file, so that I can change the template. Is there a way to select a super template dynamically?
If not, is there a good way to do the following: reuse the same {% block %} and its contents with a different template. At the same time, without violating DRY.
I am also open to other template languages ββthat can do this.
sinΞΈ source share