top | item 45164374 (no title) wishinghand | 5 months ago If you're using Apache you could just use Server Side Includes and forget the JS. discuss order hn newest j45|5 months ago If simplicity is the goal, html can be inserted in other html using the embed or object tag, no JavaScript required.https://www.w3schools.com/TAGS/tag_embed.asphttps://www.w3schools.com/TAgs/tag_object.asp MrGilbert|5 months ago 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! unknown|5 months ago [deleted]
j45|5 months ago If simplicity is the goal, html can be inserted in other html using the embed or object tag, no JavaScript required.https://www.w3schools.com/TAGS/tag_embed.asphttps://www.w3schools.com/TAgs/tag_object.asp
MrGilbert|5 months ago 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!
j45|5 months ago
https://www.w3schools.com/TAGS/tag_embed.asp
https://www.w3schools.com/TAgs/tag_object.asp
MrGilbert|5 months ago
unknown|5 months ago
[deleted]