Skip to content Skip to sidebar Skip to footer

Import An Html File Into An Other Html File

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 ins

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

Solution 3:

I am not exactly sure of the question but this might help.

Solution 4:

Including pages with only HTML:

<!--#include virtual="pagetoinclude.html" -->

Post a Comment for "Import An Html File Into An Other Html File"