▲ | wishinghand 3 days ago | |
If you're using Apache you could just use Server Side Includes and forget the JS. | ||
▲ | j45 3 days ago | parent | next [-] | |
If simplicity is the goal, html can be inserted in other html using the embed or object tag, no JavaScript required. | ||
▲ | 3 days ago | parent | prev | next [-] | |
[deleted] | ||
▲ | MrGilbert 3 days ago | parent | prev [-] | |
That’s a neat idea! I’m using Nginx, but there’s also SSI support in it. Currently, I'm using Javascript to set the current page on the main nav. I might get away with conditional includes or similar. I’ll explore my options. Thank you! |