Forum

SSI Conditional Statements (if, elif, else, endif)

Chris
22 October 2009, 19:24


Hiawatha version: 6.17.1
Operating System: Ubuntu Linux 9.04

Hugo, review of ssi-cgi.c reveals that the SSI conditional statements are
not yet implemented. Do you have plans to build this functionality?
Hugo Leisink
22 October 2009, 19:49
Maybe if it is really needed. Is SSI still used these days? Thought it was deprecated technology.
Chris
23 October 2009, 16:18
Well, I've been looking through a myriad of content management systems
over the past 6 months, hoping to find one that did not require learning
yet another language or api. I've yet to find anything as simple as SSI
to allow me to avoid repetitive webpage text. The usual header, side
menu, body, and footer content can be <!--#included--> with no change
to structure.

With the migration to CSS and javascript libraries that are independent
of any CMS I'm not convinced that someone else's generic framework
will be any better than one specific to the application.

It happens that I have a different graphic on the front page header from
that used in following pages and the SSI conditional clauses would be
the perfect answer, permitting me to use a single included header.
Mark
30 March 2010, 04:43
For what it is worth, a SSI use case [1]:

Nginx+SSI, Varnish+ESI with signed-in considerations... use Nginx in front of Varnish and use Nginx's SSI+Memcached to handle
the semi-static parts of the page in addition to using Varnish+ESI for the fairly static parts

[1] http://jimmyg.org/blog/2009/ssi-memcached-nginx.html
This topic has been closed.