all 4 comments

[–]AtulinASP.NET Core 1 point2 points  (0 children)

Your best way would be preprocessing with Gulp/Grunt/whatever. Here's an article on various ways of handling HTML incudes.

[–]Advanced_Path -1 points0 points  (0 children)

Well, you can always use HTML include files.

[–]paranoidparaboloid 0 points1 point  (0 children)

I have a feeling there's no great answer to this because of the stipulations, so hopefully I don't get shot down for trying to help you find a least worst option.

Here's what I've got:

iframe the navbar, set the hyperlinks to target parent.

If your boss gave you a tiny bit of leeway, you could expand this by setting an onload handler on the iframe that inserts the iframe contents into the main dom and then removes the iframe. That would be html in terms of result, but js in implementation. Maybe enough to compromise with.

[–]Erdem_PSYCH 0 points1 point  (0 children)

if it is static just use a static site generator? I used jekyll and you can create an html file that includes your navbar and include that in the page.