What Are The Options For Server-Side Scripting?
There are four options for server-side scripting • Server-side includes • Pi3Expressions • Server-side includes with embedded Pi3Expressions • Other scripting technologies Server-side Includes Pi3Web supports full featured server-side includes. This is easiest as it is a well documented and known technique. By default any file extension mapped to a the media type ‘internal/x-server-parsed-html’ will be processed by the SSI handler (SendSSI). The file extension to media type mapping are usually in SERVER_ROOT/Fragment/Mime.typ Use the ‘features’ configuration of Pi3Web and view http://localhost/pidocs/features/testssi.ssi for an example. Pi3Expressions This is a built-in mini expression language for accessing, formatting and modifying internal server values including HTTP headers and markers. A dynamic page can be created from just one such expression by causing the ‘SendPi3Expression’ handler to be invoked. This can be achieved by setting a marker based on the virtual path mapped or re