4 ms·
HTML, CSS and SSI includes would be an easier option. If you don't want to deal with Node.
by mouzogu 6y ago
HTML, CSS and SSI includes would be an easier option. If you don't want to deal with Node.
- LeonenTheDK 6y agoI was unaware of SSI, thanks for pointing it out. I'll be taking a look at that tonight.
- robertoandred 6y agoHow do you set the state of a nav with SSI? Does it know what the page being built is?
- mouzogu 6y agoYou can use variables in SSI and if/else conditions. So you could set state based on the URL or other environment variables. It's actually fairly powerful and you can get quite a lot done with it. https://httpd.apache.org/docs/current/howto/ssi.html https://httpd.apache.org/docs/current/howto/ssi.html