Marcolac
Marcolac

Reputation: 931

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 instead of copying one file into the other.


For now, I'm developing locally, with Django.

Upvotes: 7

Views: 13914

Answers (4)

rxdazn
rxdazn

Reputation: 1390

{% include 'file.html' %} should work

Upvotes: 15

Baronth
Baronth

Reputation: 989

Including pages with only HTML:

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

Upvotes: 0

Wez
Wez

Reputation: 10712

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

Upvotes: 1

some_other_guy
some_other_guy

Reputation: 3414

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

Upvotes: 0

Related Questions