Import an HTML file into an other HTML file
11,205
Solution 1
{% include 'file.html' %}
should work
Solution 2
I've not used Django before, but they have documentation on their template language here.
https://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance
Author by
Marcolac
Updated on July 06, 2022Comments
-
Marcolac almost 2 years
I would like to know how to import an HTML file into an other HTML file.
Both files refer to a lot of different files, so I would prefer to keep them into two different folders instead of copying one file into the other.
For now, I'm developing locally, with Django.