Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

leveraging Server Side Includes (SSI)?

  • This topic has 4 replies, 3 voices, and was last updated 1 month, 2 weeks ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11464
    Avatar photostoptouchingme

    i know little about SSI or whether it’s available outside of apache, but i’m wondering if it could be leveraged in order to drastically reduce the number of operations when updating a site, such as when adding/editing navigation menu items

    #11495
    Avatar photogiampiero

    I don’t know how SSI works, but I think you can achieve this using this shoelace web component: https://shoelace.style/components/include

    #11496
    Avatar photostoptouchingme

    this is something that would best be integrated in Publii, assuming it’s a reasonable request (SSI is supported by Apache, LiteSpeed, nginx, IIS)

     

    SSI works using shtml files

    imagine a nav menu that extends across the entire website – currently, if you add/remove an item, Publii has to republish all those pages, whereas with SSI, it would only have to publish 1 file which is then included in all the other files via the web server (the other files would only contain a special HTML comment that references the file containing the HTML for the menu)

    #11515
    Avatar photobjazmoore

    One of the things I like about Publii is that I can host the finished product on a static host like GitHub pages.  This would have to be an optional element that could be disabled in order for those of us who use static hosts to keep things working.

    #11525
    Avatar photostoptouchingme

    This would have to be an optional element that could be disabled in order for those of us who use static hosts …

    good point which i neglected to consider, however a quick search seems to indicate that even those using a static host may be able to benefit from this with some JS that Publii could publish

    html – Server side includes alternative – Stack Overflow
    https://stackoverflow.com/questions/22326742/server-side-includes-alternative

    the obvious downside is of course the need to enable JS on the browser side and, personally, i wouldn’t want to require that

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.